From 3ef1fdee3a8f698cea243c86f4747a4060eb1763 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 31 Mar 2018 18:23:30 +0200 Subject: 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. --- fswidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fswidget.h') diff --git a/fswidget.h b/fswidget.h index 0beb44e..f55ad99 100644 --- a/fswidget.h +++ b/fswidget.h @@ -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; }; -- cgit v1.2.3-70-g09d2