summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-11-03 07:55:02 +0100
committerArno <arno@disconnect.de>2018-11-03 07:55:02 +0100
commita896d928412bc8f02131c8c6ab0d8c1ad4e4753f (patch)
treebb2d50f4675c3100b1a1a578988c41c3f5c6275f /newmoviewizard.h
parent3bfc587c081df11a02fad65e9cf9a3174aba284a (diff)
downloadSheMov-a896d928412bc8f02131c8c6ab0d8c1ad4e4753f.tar.gz
SheMov-a896d928412bc8f02131c8c6ab0d8c1ad4e4753f.tar.bz2
SheMov-a896d928412bc8f02131c8c6ab0d8c1ad4e4753f.zip
Put WizardTreeModel in separate file
One class per file :) No functional changes, just code shuffle and reindention.
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r--newmoviewizard.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h
index 132ae4e..ee3b20d 100644
--- a/newmoviewizard.h
+++ b/newmoviewizard.h
@@ -121,25 +121,5 @@ class MovieMetadataPage : public QWizardPage {
QCheckBox *mMetadataEnabled;
};
-class WizardTreeModel : public SmTreeModel {
- Q_OBJECT
- public:
- 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 { NumFields = 5 };
- enum Types { Movie = 1, FrontCover = 2, BackCover = 3, GeneralCover = 4, Origin = 5 };
- explicit WizardTreeModel(QStringList &headers, QObject *parent = nullptr);
-
- //data + flags
- virtual QVariant data(const QModelIndex &index, int role) const;
- virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
- virtual Qt::ItemFlags flags(const QModelIndex &index) const;
- QList<QVariant> fileData(const QModelIndex &idx) const;
- void clear();
-
- private:
- QHash<int, QString> mFiletypeMap;
- QHash<QString, int> mFilePartMap;
-};
#endif