diff options
author | Arno <arno@disconnect.de> | 2018-03-31 18:23:30 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-31 18:23:30 +0200 |
commit | 3ef1fdee3a8f698cea243c86f4747a4060eb1763 (patch) | |
tree | 516883fe5410cb9f7a94a2ce8cc88f16a4ec46b1 /fswidget.h | |
parent | 8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6 (diff) | |
download | SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.tar.gz SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.tar.bz2 SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.zip |
Implement archive movies for FSWidget
Mimic the old behavior, but make the Wizard local to FSWidget. It's only
called from there, so no need to make it global.
Diffstat (limited to 'fswidget.h')
-rw-r--r-- | fswidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,10 +9,12 @@ class QTreeView; class QStandardItemModel; class QSortFilterProxyModel; class QContextMenuEvent; +class NewMovieWizard; class FSWidget : public QWidget { Q_OBJECT public: + enum CustomRoles { FullPathRole = Qt::UserRole + 1}; explicit FSWidget(QWidget *parent = nullptr); ~FSWidget(); @@ -28,6 +30,7 @@ class FSWidget : public QWidget { void insertItem(QComboBox *cb, const QString &text); void removeItem(QComboBox *cb); void gatherData(const QString &curDir); + void archiveMovie(); void advanceDir(int by); int queryCount(QSqlQuery &q, const QString &arg); @@ -41,6 +44,7 @@ class FSWidget : public QWidget { QTreeView *mFileView; QStandardItemModel *mModel; QSortFilterProxyModel *mProxy; + NewMovieWizard *mMovieWizard; int mQueryCount; }; |