diff options
author | Arno <am@disconnect.de> | 2011-01-23 11:51:31 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-01-23 11:51:31 +0100 |
commit | e4718ab079f4a4eba4a47fb75992b977a787f369 (patch) | |
tree | 9b0529d4d5cc015880951e0f0a6337a3e59dc9b7 /seriestreemodel.cpp | |
parent | 6c1a89feb8e8178b02adfa8b4fdc0eb8ef0e78c1 (diff) | |
download | SheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.tar.gz SheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.tar.bz2 SheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.zip |
Implement metadata
Added a WizardPage to add metadata like releaseyear, releasegroup,
newsgroup subject and such. Metadata can't be displayed at the moment
and needs to be revameped seriously. I guess it's time for another model
keeping the metadata.
Created a new table in the database for this.
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r-- | seriestreemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/seriestreemodel.cpp b/seriestreemodel.cpp index a86cad6..3a3379b 100644 --- a/seriestreemodel.cpp +++ b/seriestreemodel.cpp @@ -316,7 +316,7 @@ bool SeriesTreeModel::addSeries(const QVariant &seriesName, const QModelIndex &p if(lastId.next()){ int id = lastId.value(0).toInt(); QList<QVariant> seriesData; - seriesData << name << id << QVariant() << QVariant() << Series; + seriesData << name << id << QVariant() << QVariant() << Series << false; if(addRow(seriesData, parent)){ mDb.commit(); return true; @@ -340,7 +340,7 @@ bool SeriesTreeModel::addSeriesPart(int seriesPart, const QModelIndex &parent){ if(lastId.next()){ int id = lastId.value(0).toInt(); QList<QVariant> partData; - partData << parent.data(NameRole) << seriesId << id << seriesPart << Part; + partData << parent.data(NameRole) << seriesId << id << seriesPart << Part << false; if(addRow(partData, parent)){ mDb.commit(); mSeriesPartSeriesMap.insert(id, seriesId); |