summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-09 06:21:52 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-09 06:21:52 (GMT)
commit1c2af2d7cf2557671818896f4a9c32ba540e8437 (patch)
tree2a8df47e6fc0ba422c89d2a4bf78550d9e7410e5
parentc7113b28c370a0a235a9fa414916b1f9d81e5a40 (diff)
Fix sorting tree items
-rw-r--r--src/configureplugins/configurepluginslistwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/configureplugins/configurepluginslistwidget.cpp b/src/configureplugins/configurepluginslistwidget.cpp
index ce1c5cd..04680a9 100644
--- a/src/configureplugins/configurepluginslistwidget.cpp
+++ b/src/configureplugins/configurepluginslistwidget.cpp
@@ -34,6 +34,8 @@ ConfigurePluginsListWidget::ConfigurePluginsListWidget(QWidget *parent)
mainLayout->setMargin(0);
mListWidget = new QTreeWidget(this);
+ mListWidget->setSortingEnabled(true);
+ mListWidget->sortItems(0, Qt::AscendingOrder);
mListWidget->setObjectName(QStringLiteral("listwidget"));
mListWidget->setHeaderHidden(true);
mListWidget->setSelectionMode(QAbstractItemView::SingleSelection);