From ddd1616f5c310c94214e0ba2629f174c4cf768f3 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 20 Aug 2016 10:13:44 +0200 Subject: Implement file search Search for a regular expression in all files of all torrents and select them. --- shemovcleaner.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'shemovcleaner.h') diff --git a/shemovcleaner.h b/shemovcleaner.h index fe02fc6..80ccddb 100644 --- a/shemovcleaner.h +++ b/shemovcleaner.h @@ -3,6 +3,7 @@ #include #include +#include class QPushButton; class QLineEdit; @@ -25,6 +26,7 @@ class ShemovCleaner : public QMainWindow { void deleteFiles(); void moveFiles(); void torrentInfo(); + void searchFile(); private: void setupGui(); @@ -34,12 +36,13 @@ class ShemovCleaner : public QMainWindow { void readSettings(); void writeSettings(); QLineEdit *mDir; - QLineEdit *mExt; QPushButton *mSelDir; - QPushButton *mSelExt; + QLineEdit *mSearchTorrents; + QPushButton *mDoSearchTorrents; QPushButton *mMove; QPushButton *mDelete; QPushButton *mInfo; + QString mExt; QLabel *mSelected; QStandardItemModel *mModel; FileSorter *mProxy; -- cgit v1.2.3-70-g09d2