diff options
author | Arno <am@disconnect.de> | 2014-02-15 04:55:46 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-02-15 04:55:46 +0100 |
commit | 816b84b7a4263c587c661e4c7178f3b6721e4cfe (patch) | |
tree | d5d6bd412d26b29f053ba7f3135f85b01dae08a7 /archivemodel.h | |
parent | dcbf9244f0ed147a5f3c412b9e83c581b58fa1b2 (diff) | |
download | SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.tar.gz SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.tar.bz2 SheMov-816b84b7a4263c587c661e4c7178f3b6721e4cfe.zip |
Replace ArchiveModel::FileType with #define
These constants are used all over the place and aren't really specific
to ArchiveModel, so use the preprocessor.
Diffstat (limited to 'archivemodel.h')
-rw-r--r-- | archivemodel.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/archivemodel.h b/archivemodel.h index 2985e55..e4cd571 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -92,7 +92,6 @@ class ArchiveFilesModel : public SmTreeModel { public: enum CustomRoles { ExpansionRole = Qt::UserRole + 1, SeriesPartIdRole = Qt::UserRole + 2, FilenameRole = Qt::UserRole + 3, Md5SumRole = Qt::UserRole + 4, SizeRole = Qt::UserRole + 5, DvdNoRole = Qt::UserRole + 6, FileTypeRole = Qt::UserRole + 7, FileNumberRole = Qt::UserRole + 8, QualityRole = Qt::UserRole + 9, FileIdRole = Qt::UserRole + 10, SizeDurRole = Qt::UserRole + 11, FullPathRole = Qt::UserRole + 12 }; enum Fields { Expansion = 0, SeriesPartId = 1, Filename = 2, Md5Sum = 3, Size = 4, DvdNo = 5, FileType = 6, FileNumber = 7, Quality = 8, FileId = 9, SizeDur = 10, FullPath = 11 }; - enum FileType { Movie = 1, FrontCover = 2, BackCover = 3, GeneralCover = 4 }; enum { NumFields = 12 }; explicit ArchiveFilesModel(const QStringList &headers, QObject *parent = 0); virtual QVariant data(const QModelIndex &index, int role) const; |