summaryrefslogtreecommitdiffstats
path: root/seriestreemodel.h
diff options
context:
space:
mode:
authorArno Moeller <am@mindwerk.de>2010-06-17 17:59:39 +0200
committerArno Moeller <am@mindwerk.de>2010-06-17 17:59:39 +0200
commita4e40f771e7f6df9dc8d7e63c5460761eb0e33c0 (patch)
tree2c4585a84ba9179aea8309960e6824bb7f6ec6b4 /seriestreemodel.h
parentb503c9e9a29c41b4e0d5e6c43af42b6dc135b9c8 (diff)
downloadSheMov-a4e40f771e7f6df9dc8d7e63c5460761eb0e33c0.tar.gz
SheMov-a4e40f771e7f6df9dc8d7e63c5460761eb0e33c0.tar.bz2
SheMov-a4e40f771e7f6df9dc8d7e63c5460761eb0e33c0.zip
Partial implementation of adding new Series
Adding an item to the TreeView works, but it doesn't get focus after inserting. Also the data is not shown. And setting the title of the new item should make the database puke.
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r--seriestreemodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/seriestreemodel.h b/seriestreemodel.h
index 74bb53c..507761c 100644
--- a/seriestreemodel.h
+++ b/seriestreemodel.h
@@ -19,7 +19,7 @@ class SeriesTreeModel : public SmTreeModel {
public:
enum CustomRoles { NameRole = Qt::UserRole + 1, SeriesIdRole = Qt::UserRole + 2, SeriesPartIdRole = Qt::UserRole + 3, SeriesPartRole = Qt::UserRole + 4, TypeRole = Qt::UserRole + 5 };
enum Fields { Name = 0, SeriesId = 1, SeriesPartId = 2, SeriesPart = 3, Type = 4 };
- enum Types { Series, Part };
+ enum Types { Series, Part, NewSeries };
explicit SeriesTreeModel(QStringList &headers, QObject *parent = 0);
~SeriesTreeModel();