diff options
author | Alexander Schlarb <alexander-qt@xmine128.tk> | 2015-10-09 22:30:13 +0200 |
---|---|---|
committer | Alexander Schlarb <alexander-qt@xmine128.tk> | 2015-10-26 16:09:43 +0000 |
commit | f55f4acfd8167650fe931ab532ec7b086642b224 (patch) | |
tree | 84f04663140a5ad427e908a55d230596efc7951c /src/qdbus/qdbusviewer/qdbusviewer.h | |
parent | e15ca59111fe05f5ecc0f7fb48c34b5b22115a12 (diff) |
Sort items in QDBusViewer
Before this commit QDBusViewer does not sort the list of service names
it shows in the service list. This makes it pretty hard to find to
desired service in the service list. By sorting all services using a
custom SortFilterProxy the usability of QDBusViewer is greatly improved.
Change-Id: I464addf0988ee020e4efbb4486ec6a4a11c36b6d
Task-number: QTBUG-5403
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/qdbus/qdbusviewer/qdbusviewer.h')
-rw-r--r-- | src/qdbus/qdbusviewer/qdbusviewer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qdbus/qdbusviewer/qdbusviewer.h b/src/qdbus/qdbusviewer/qdbusviewer.h index cd6b5a347..3d54b0e7e 100644 --- a/src/qdbus/qdbusviewer/qdbusviewer.h +++ b/src/qdbus/qdbusviewer/qdbusviewer.h @@ -37,10 +37,11 @@ #include <QtWidgets/QWidget> #include <QtDBus/QDBusConnection> +class ServicesProxyModel; + QT_FORWARD_DECLARE_CLASS(QTreeView) QT_FORWARD_DECLARE_CLASS(QTreeWidget) QT_FORWARD_DECLARE_CLASS(QStringListModel) -QT_FORWARD_DECLARE_CLASS(QSortFilterProxyModel) QT_FORWARD_DECLARE_CLASS(QLineEdit) QT_FORWARD_DECLARE_CLASS(QListView) QT_FORWARD_DECLARE_CLASS(QTextBrowser) @@ -95,7 +96,7 @@ private: QAction *refreshAction; QTreeWidget *services; QStringListModel *servicesModel; - QSortFilterProxyModel *servicesFilterModel; + ServicesProxyModel *servicesFilterModel; QLineEdit *serviceFilterLine; QListView *servicesView; QTextBrowser *log; |