diff options
author | Arno <arno@disconnect.de> | 2016-05-06 04:14:57 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-05-06 04:14:57 +0200 |
commit | ce6fba33a51bb586c1e2bc4977e4cd4d15594b00 (patch) | |
tree | 132d61772f6f781c4249ddfc5a0197c4927c238e /newmoviewizard.h | |
parent | 6fb9244defb090eba7a11b88a40fadfe5149ea14 (diff) | |
download | SheMov-ce6fba33a51bb586c1e2bc4977e4cd4d15594b00.tar.gz SheMov-ce6fba33a51bb586c1e2bc4977e4cd4d15594b00.tar.bz2 SheMov-ce6fba33a51bb586c1e2bc4977e4cd4d15594b00.zip |
Preserve InfoPage data
Save InfoPage data on reject and accept, fill the fields on next
invocation, execpt files.
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r-- | newmoviewizard.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h index 7b31e51..e88be9f 100644 --- a/newmoviewizard.h +++ b/newmoviewizard.h @@ -33,10 +33,11 @@ class NewMovieWizard : public QWizard { Q_OBJECT public: explicit NewMovieWizard(QWidget *parent = 0); - void accept(); + virtual void accept(); + virtual void reject(); MovieInfoPage *infoPage() { return mInfoPage; } MovieMappingPage *actorPage() { return mActorPage; } - MovieMappingPage *genrePage() { return mGenrePage; } + MovieMappingPage *genrePage() { return mGenrePage; } private: MovieInfoPage *mInfoPage; @@ -54,6 +55,8 @@ class MovieInfoPage : public QWizardPage { void addFile(const QString &file); void setCurrentDir(const QString &dir) { mCurrentDir = dir; } void selectFirst(); + void saveData(); + void restoreData(); public slots: void initCompleters(); @@ -82,6 +85,10 @@ class MovieInfoPage : public QWizardPage { QStringListModel *mSeriesCompleterModel; QSortFilterProxyModel *mProxy; QString mCurrentDir; + QString mCurTitle; + QString mCurSubtitle; + int mCurSeriesno; + int mCurQuality; }; class MovieMappingPage : public QWizardPage { |