Commit d11b8c9a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port KRecursiveFilterProxyModel to QSortFilterProxyModel::setRecursiveFilteringEnabled

parent 17395473
......@@ -34,7 +34,7 @@
#include <KStringHandler>
#include <KLocalizedString>
#include <KService>
#include <KRecursiveFilterProxyModel>
#include <QSortFilterProxyModel>
#include <KServiceGroup>
#include <KDesktopFile>
#include <KCategorizedSortFilterProxyModel>
......@@ -235,7 +235,8 @@ void KGlobalShortcutsEditor::KGlobalShortcutsEditorPrivate::initGUI()
connect(ui.addButton, &QToolButton::clicked, [this]() {
if (!selectApplicationDialogUi.treeView->model()) {
KRecursiveFilterProxyModel *filterModel = new KRecursiveFilterProxyModel(selectApplicationDialogUi.treeView);
QSortFilterProxyModel *filterModel = new QSortFilterProxyModel(selectApplicationDialogUi.treeView);
filterModel->setRecursiveFilteringEnabled(true);
QStandardItemModel *appModel = new QStandardItemModel(selectApplicationDialogUi.treeView);
selectApplicationDialogUi.kfilterproxysearchline->setProxy(filterModel);
filterModel->setSourceModel(appModel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment