From 2e65f581c67d75a2355de4c3906c0d862e0a9ab0 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 5 Sep 2016 02:57:54 +0200 Subject: Make actions local Define actions in their respective Widgets instead of MainWindow and fix the menus and toolbars accordingly. --- torrentwidget.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'torrentwidget.h') 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 -- cgit v1.2.3-70-g09d2