diff options
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r-- | newmoviewizard.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h index d79531f..88667b9 100644 --- a/newmoviewizard.h +++ b/newmoviewizard.h @@ -48,6 +48,7 @@ class MovieInfoPage : public QWizardPage { void removeFile(); void onDvd(int); void typeChanged(QString); + void seriesPartChanged(int); void setNextDvdNo(); void initModel(); @@ -82,8 +83,8 @@ class MovieMappingPage : public QWizardPage { class WizardTreeModel : public SmTreeModel { Q_OBJECT public: - enum CustomRoles { FileNameRole = Qt::UserRole + 1, FileSizeRole = Qt::UserRole + 2, FileTypeRole = Qt::UserRole + 3, FullPathRole = Qt::UserRole + 4 }; - enum Fields { FileName = 0, FileSize = 1, FileType = 2, FullPath = 3 }; + enum CustomRoles { FileNameRole = Qt::UserRole + 1, FileSizeRole = Qt::UserRole + 2, FileTypeRole = Qt::UserRole + 3, FilePartRole = Qt::UserRole + 4, FullPathRole = Qt::UserRole + 5 }; + enum Fields { FileName = 0, FileSize = 1, FileType = 2, FilePart = 3, FullPath = 4 }; enum Types { Movie = 1, FrontCover = 2, BackCover = 3, GeneralCover = 4 }; explicit WizardTreeModel(QStringList &headers, QObject *parent = 0); virtual ~WizardTreeModel() {} @@ -91,7 +92,8 @@ class WizardTreeModel : public SmTreeModel { //data + flags virtual QVariant data(const QModelIndex &index, int role) const; virtual Qt::ItemFlags flags(const QModelIndex &index) const; - QHash<QString, int> files() const; + QHash<QString, int> files(); + int filesPart(const QString &fullPath) const; //file types QStringList types() const; @@ -99,7 +101,7 @@ class WizardTreeModel : public SmTreeModel { private: QHash<int, QString> mFileTypeMap; - + QHash<QString, int> mFilePartMap; }; #endif |