diff options
author | Arno <am@disconnect.de> | 2010-09-11 18:28:48 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-09-11 18:28:48 +0200 |
commit | 3c86ae36f5048929ed43e1d49060d45e927953e8 (patch) | |
tree | b2301c0e4870972c2efd3971e80900390507e066 /newmoviewizard.h | |
parent | 9c2ffa8c6a9b1683ea21ed43f2b44f62fda7964e (diff) | |
download | SheMov-3c86ae36f5048929ed43e1d49060d45e927953e8.tar.gz SheMov-3c86ae36f5048929ed43e1d49060d45e927953e8.tar.bz2 SheMov-3c86ae36f5048929ed43e1d49060d45e927953e8.zip |
Fix oddities in NewMovieWizard
Well, this one should have been easy, but there's always a way to make
things complicated. Select proper entries for mPartno and mFileType in
NewMovieWizard.
Note to self: never ever forget about QObject::blockSignals(bool) again.
This is way easier than fiddling around with boolean logic...
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r-- | newmoviewizard.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h index 88667b9..9f476ed 100644 --- a/newmoviewizard.h +++ b/newmoviewizard.h @@ -51,6 +51,7 @@ class MovieInfoPage : public QWizardPage { void seriesPartChanged(int); void setNextDvdNo(); void initModel(); + void fileSelectionChanged(const QModelIndex ¤t, const QModelIndex &previous); private: QTreeView *mFileView; @@ -83,7 +84,7 @@ 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, FilePartRole = Qt::UserRole + 4, FullPathRole = Qt::UserRole + 5 }; + 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); @@ -98,6 +99,7 @@ class WizardTreeModel : public SmTreeModel { //file types QStringList types() const; int typeId(const QString &value) const; + QString typeName(int typeId) const; private: QHash<int, QString> mFileTypeMap; |