summaryrefslogtreecommitdiffstats
path: root/torrentwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-05 02:57:54 +0200
committerArno <arno@disconnect.de>2016-09-05 02:57:54 +0200
commit2e65f581c67d75a2355de4c3906c0d862e0a9ab0 (patch)
treec13885aedde18c80155e41771aafbade6079efc3 /torrentwidget.h
parent31847fb5125a60d8f54853f96205836790271ca3 (diff)
downloadShemovCleaner-2e65f581c67d75a2355de4c3906c0d862e0a9ab0.tar.gz
ShemovCleaner-2e65f581c67d75a2355de4c3906c0d862e0a9ab0.tar.bz2
ShemovCleaner-2e65f581c67d75a2355de4c3906c0d862e0a9ab0.zip
Make actions local
Define actions in their respective Widgets instead of MainWindow and fix the menus and toolbars accordingly.
Diffstat (limited to 'torrentwidget.h')
-rw-r--r--torrentwidget.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/torrentwidget.h b/torrentwidget.h
index 549b3db..051a281 100644
--- a/torrentwidget.h
+++ b/torrentwidget.h
@@ -45,21 +45,29 @@ class TorrentWidget : public QWidget {
private:
void setupGui();
+ void createActions();
void readHeaderData();
void writeHeaderData();
void readSettings();
void writeSettings();
+ QAction *createSeparator();
QLineEdit *mDir;
QPushButton *mSelDir;
QLineEdit *mSearchTorrents;
QPushButton *mDoSearchTorrents;
QString mExt;
QStandardItemModel *mModel;
- FileSorter *mProxy;
QTreeView *mFileView;
- TorrentDisplay *mTorrentDisplay;
QToolBar *mToolBar;
QMenuBar *mMenuBar;
+ QAction *mRefreshA;
+ QAction *mDeleteA;
+ QAction *mMoveA;
+ QAction *mTorrentInfoA;
+ QAction *mSelDirA;
+ QAction *mCopyFnToClipA;
+ FileSorter *mProxy;
+ TorrentDisplay *mTorrentDisplay;
};
#endif // TORRENTWIDGET_H