summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2017-04-13 10:54:44 (GMT)
committerDavid Edmundson <kde@davidedmundson.co.uk>2017-04-13 10:54:44 (GMT)
commitf5a43877a9ea6ddad9eaa8d7498c8ea518c29c81 (patch)
tree409dc35be8602e71bdffe8bd07772157f24f8893
parent3709996f8a884e80139f14ed4c334b1b1c758bf1 (diff)
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
-rw-r--r--kcmkwin/kwindecoration/kcm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp
index 3afffb1..0baec76 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);