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

Port from deprecated QTreeView::sortByColumn(int)

QTreeView::sortByColumn(int) > QTreeView::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:50:52 +01:00
parent b82752a31e
commit 7a1558e173
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07
3 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ SearchEnginesDialog::SearchEnginesDialog(QWidget* parent)
connect(ui->treeWidget, &QTreeWidget::itemDoubleClicked, this, &SearchEnginesDialog::editEngine);
ui->treeWidget->setItemDelegate(new RemoveItemFocusDelegate(ui->treeWidget));
ui->treeWidget->sortByColumn(-1);
ui->treeWidget->sortByColumn(-1, Qt::AscendingOrder);
reloadEngines();
}

View File

@ -127,9 +127,9 @@ SiteInfo::SiteInfo(WebView *view)
connect(ui->treeImages, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(imagesCustomContextMenuRequested(QPoint)));
ui->treeImages->setContextMenuPolicy(Qt::CustomContextMenu);
ui->treeImages->sortByColumn(-1);
ui->treeImages->sortByColumn(-1, Qt::AscendingOrder);
ui->treeTags->sortByColumn(-1);
ui->treeTags->sortByColumn(-1, Qt::AscendingOrder);
QzTools::setWmClass("Site Info", this);
}

View File

@ -107,8 +107,8 @@ void AutoFillManager::loadPasswords()
ui->treeExcept->addTopLevelItem(item);
}
ui->treePass->sortByColumn(-1);
ui->treeExcept->sortByColumn(-1);
ui->treePass->sortByColumn(-1, Qt::AscendingOrder);
ui->treeExcept->sortByColumn(-1, Qt::AscendingOrder);
}
void AutoFillManager::changePasswordBackend()