Commit 5d5c61c9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to sort entries

parent db54f96b
Pipeline #53587 canceled with stage
in 15 minutes and 52 seconds
......@@ -12,7 +12,7 @@
#include <KMessageBox>
#include <KTreeWidgetSearchLine>
#include <QComboBox>
#include <QListWidget>
#include <QHeaderView>
#include <QMenu>
#include <QPointer>
#include <QTreeWidget>
......@@ -163,6 +163,10 @@ void RemoteContentConfigureWidget::readSettings()
for (const RemoteContentInfo &info : remoteContentInfos) {
insertRemoteContentInfo(info);
}
mTreeWidget->setSortingEnabled(true);
mTreeWidget->header()->setSortIndicatorShown(true);
mTreeWidget->header()->setSectionsClickable(true);
mTreeWidget->sortByColumn(0, Qt::AscendingOrder);
}
void RemoteContentConfigureWidget::insertRemoteContentInfo(const RemoteContentInfo &info)
......
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