From f5a43877a9ea6ddad9eaa8d7498c8ea518c29c81 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 13 Apr 2017 11:54:44 +0100 Subject: [PATCH] Sort the themes in decoration KCM Summary: Even though we're using a QSortFilterProxy model, by default it doesn't actually sort anything until instructed to. This patch turns sorting on. Test Plan: Opened the KCM Looked at it Reviewers: #plasma, mart Reviewed By: mart Subscribers: plasma-devel, kwin, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D5407 --- kcmkwin/kwindecoration/kcm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp index 3afffb1d72..0baec7630a 100644 --- a/kcmkwin/kwindecoration/kcm.cpp +++ b/kcmkwin/kwindecoration/kcm.cpp @@ -83,6 +83,8 @@ ConfigurationModule::ConfigurationModule(QWidget *parent, const QVariantList &ar { m_proxyModel->setSourceModel(m_model); m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); + m_proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive); + m_proxyModel->sort(0); connect(m_ui->filter, &QLineEdit::textChanged, m_proxyModel, &QSortFilterProxyModel::setFilterFixedString); m_quickView = new QQuickView(0);