diff options
author | Arno <am@disconnect.de> | 2013-06-01 05:06:04 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-06-01 05:06:04 +0200 |
commit | ba8b78eb0b7b364f6ecc954f8b99b138dfc13981 (patch) | |
tree | 5f73814fb157515bfe4d56047c685c6d955b3027 /seriestreemodel.h | |
parent | a5316f7081b7d2142fda3a8391567bdabb0cc11c (diff) | |
download | SheMov-ba8b78eb0b7b364f6ecc954f8b99b138dfc13981.tar.gz SheMov-ba8b78eb0b7b364f6ecc954f8b99b138dfc13981.tar.bz2 SheMov-ba8b78eb0b7b364f6ecc954f8b99b138dfc13981.zip |
First draft of new ArchiveModel
The new ArchiveModel allows sorting and display by the series name,
actors and genres. Hopefully it's generic enough to easily add other
sort orders like file location or file type.
For now, it's just there. Not included anywhere. No view, no nothing.
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r-- | seriestreemodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seriestreemodel.h b/seriestreemodel.h index 005e2c7..55add52 100644 --- a/seriestreemodel.h +++ b/seriestreemodel.h @@ -20,7 +20,7 @@ class QSqlQuery; class SeriesTreeModel : public SmTreeModel { Q_OBJECT public: - enum CustomRoles { NameRole = Qt::UserRole + 1, SeriesIdRole = Qt::UserRole + 2, SeriesPartIdRole = Qt::UserRole + 3, SeriesPartRole = Qt::UserRole + 4, TypeRole = Qt::UserRole + 5, FavoriteRole = Qt::UserRole + 6, SubtitleRole = Qt::UserRole + 7, IsLocalRole = Qt::UserRole + 8 }; + enum CustomRoles { NameRole = Qt::UserRole + 1, SeriesIdRole = Qt::UserRole + 2, SeriesPartIdRole = Qt::UserRole + 3, SeriesPartRole = Qt::UserRole + 4, TypeRole = Qt::UserRole + 5, FavoriteRole = Qt::UserRole + 6, SubtitleRole = Qt::UserRole + 7, IsLocalRole = Qt::UserRole + 8 }; enum Fields { Name = 0, SeriesId = 1, SeriesPartId = 2, SeriesPart = 3, Type = 4, Favorite = 5, Subtitle = 6, IsLocal = 7 }; enum Types { Series, Part, NewSeries }; enum QueryType { NumericQuery, TextQuery }; |