diff options
author | Arno <arno@disconnect.de> | 2018-02-02 18:13:27 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-02-02 18:13:27 +0100 |
commit | 2f1e930668c1a2205a09ee835908d28b2bdedcdd (patch) | |
tree | 7f9331fd80e45e27994a0a5ebc2e61e4dc69be23 /searchdialog.h | |
parent | 3a4b40917ba45e3dd34e14816d12ca8a6bd510f7 (diff) | |
download | ShemovCleaner-2f1e930668c1a2205a09ee835908d28b2bdedcdd.tar.gz ShemovCleaner-2f1e930668c1a2205a09ee835908d28b2bdedcdd.tar.bz2 ShemovCleaner-2f1e930668c1a2205a09ee835908d28b2bdedcdd.zip |
Implement context menu for search results
Subclass QTreeView to show a custom context menu. Since the depth of
some items is > 1, add an option to expand and collapse a node
recursively.
Diffstat (limited to 'searchdialog.h')
-rw-r--r-- | searchdialog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/searchdialog.h b/searchdialog.h index 0ef4aad..b5b9ba4 100644 --- a/searchdialog.h +++ b/searchdialog.h @@ -8,6 +8,7 @@ class QComboBox; class QTreeView; class QStandardItemModel; class QStandardItem; +class SearchView; class SearchDialog : public QDialog { Q_OBJECT @@ -37,8 +38,8 @@ class SearchDialog : public QDialog { void doActorGenres(QStandardItem *item); QLineEdit *mSearch; QComboBox *mTypeSel; - QTreeView *mResV; - QTreeView *mDataV; + SearchView *mResV; + SearchView *mDataV; QStandardItemModel *mResM; QStandardItemModel *mDataM; }; |