1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Port from deprecated QTableView::sortByColumn(int)

QTableView::sortByColumn(int) > QTableView::sortByColumn(int column, Qt::SortOrder order)

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-31 10:47:57 +01:00
parent 018b8d1a28
commit b82752a31e
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -77,7 +77,7 @@ UserAgentDialog::UserAgentDialog(QWidget* parent)
ui->table->setItem(row, 1, userAgentItem);
}
ui->table->sortByColumn(-1);
ui->table->sortByColumn(-1, Qt::AscendingOrder);
connect(ui->add, &QAbstractButton::clicked, this, &UserAgentDialog::addSite);
connect(ui->remove, &QAbstractButton::clicked, this, &UserAgentDialog::removeSite);