diff options
author | Arno <am@disconnect.de> | 2011-05-14 10:32:19 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-05-14 10:32:19 +0200 |
commit | a6a1c319ee5a77cc8341eaeccc72da35cbcf17c5 (patch) | |
tree | 83c6cf2403b0eda9c60959d273eaf31599e7099f /smglobals.cpp | |
parent | 189dbc38b5a4495553303a705e54eb1c95bc8e52 (diff) | |
download | SheMov-a6a1c319ee5a77cc8341eaeccc72da35cbcf17c5.tar.gz SheMov-a6a1c319ee5a77cc8341eaeccc72da35cbcf17c5.tar.bz2 SheMov-a6a1c319ee5a77cc8341eaeccc72da35cbcf17c5.zip |
Add field isLocal to SeriesTreeModel
Indicate if SeriesPart has local files in SeriesTreeModel. The
cost for this is an additional Query when populating the model,
but fortunately the performance impact isn't noticeable.
Also introduced a new enum NumFields to SeriesTreeModel. It
represents the number of fields for a SmTreeItem so extending
the model isn't that cumbersome any more.
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smglobals.cpp b/smglobals.cpp index 0ee07c5..15147da 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -58,7 +58,7 @@ SmGlobals *SmGlobals::instance(){ QAbstractItemModel *SmGlobals::model(const QString &which){ if(which == "SeriesModel"){ if(!mModels.contains(which)){ - QStringList headers = QStringList() << tr("Series") << tr("Series ID") << tr("Series part ID") << tr("Part") << tr("Type") << tr("Favorite") << tr("Subtitle"); + QStringList headers = QStringList() << tr("Series") << tr("Series ID") << tr("Series part ID") << tr("Part") << tr("Type") << tr("Favorite") << tr("Subtitle") << tr("Is Local"); SeriesTreeModel *model = new SeriesTreeModel(headers); mModels.insert(which, model); } |