From a4e40f771e7f6df9dc8d7e63c5460761eb0e33c0 Mon Sep 17 00:00:00 2001 From: Arno Moeller Date: Thu, 17 Jun 2010 17:59:39 +0200 Subject: 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. --- seriestreemodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seriestreemodel.h') 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(); -- cgit v1.2.3-70-g09d2