From 838f8d1760b8c7f72680ab0c57fd813c29940b86 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 07:54:01 +0100 Subject: Resurrect search dialog Add it to the global menu and make it accessible by CTRL+f when the focus is on the main window. --- searchdialog.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'searchdialog.h') diff --git a/searchdialog.h b/searchdialog.h index b5106fb..c2f8047 100644 --- a/searchdialog.h +++ b/searchdialog.h @@ -16,6 +16,7 @@ class QPushButton; class SmTreeView; class SmTreeModel; class SmTreeItem; +class QTreeView; class QSortFilterProxyModel; class SearchDialog : public QDialog { @@ -31,20 +32,16 @@ class SearchDialog : public QDialog { private slots: void search(); - void disableSearch(); - void searchDoubleclicked(); + void writeSettings(); + void readSettings(); private: void appendChild(QVariant id, QVariant subject, QVariant name, QVariant sub, SmTreeItem *parent); void appendEmpty(SmTreeItem *parent); QLineEdit *mSearch; - QCheckBox *mExFilenames; - QCheckBox *mExMeta; - SmTreeView *mResult; + QTreeView *mResult; SmTreeModel *mModel; QSortFilterProxyModel *mProxy; - QPushButton *mDoSearch; - QPushButton *mClose; }; #endif // SEARCHDIALOG_H -- cgit v1.2.3-70-g09d2