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:
parent
b82752a31e
commit
7a1558e173
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user