Fixed tables' items not displaying when renewing a QTableView having a
header's column with the SortIndicator enabled
This commit is contained in:
Valentino Orlandi 2023-01-23 00:47:43 +01:00
parent 79917abe45
commit e81abcbcd9
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
1 changed files with 3 additions and 0 deletions

View File

@ -2965,6 +2965,7 @@ void MainWindow::on_button_StatsWarn_Draw_clicked()
}
void MainWindow::drawStatsWarn()
{
this->ui->table_StatsWarn->horizontalHeader()->setSortIndicator( -1, Qt::SortOrder::AscendingOrder );
this->ui->table_StatsWarn->setRowCount(0);
this->crapview.drawWarn(
this->ui->table_StatsWarn, this->ui->chart_StatsWarn,
@ -3064,6 +3065,7 @@ void MainWindow::on_button_StatsSpeed_Draw_clicked()
}
void MainWindow::drawStatsSpeed()
{
this->ui->table_StatsSpeed->horizontalHeader()->setSortIndicator( -1, Qt::SortOrder::AscendingOrder );
this->ui->table_StatsSpeed->setRowCount(0);
this->crapview.drawSpeed(
this->ui->table_StatsSpeed,
@ -3280,6 +3282,7 @@ void MainWindow::on_button_StatsCount_Client_clicked()
void MainWindow::drawStatsCount()
{
this->ui->table_StatsCount->horizontalHeader()->setSortIndicator( -1, Qt::SortOrder::AscendingOrder );
this->ui->table_StatsCount->setRowCount(0);
this->crapview.drawCount(
this->ui->table_StatsCount, this->ui->chart_StatsCount,