From a87e4d8c3c2102e9728dd5df303acca7ae08b343 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 6 Dec 2010 19:10:19 +0100 Subject: Edit values in archive This commit introduces QInputDialogs for all values editable in the archive. Inline editing in the view doesn't seem the right choice regarding usability. Fixed a long standing bug in nextDvdNo(). That was off by one. Return one more than max(value). Also got rid of DvdNoDialog, replaced by a QInputDialog. --- seriestreemodel.h | 1 - 1 file changed, 1 deletion(-) (limited to 'seriestreemodel.h') diff --git a/seriestreemodel.h b/seriestreemodel.h index e26e49b..e25c111 100644 --- a/seriestreemodel.h +++ b/seriestreemodel.h @@ -23,7 +23,6 @@ class SeriesTreeModel : public SmTreeModel { 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, NewSeries }; - //enum Filter { ClearFilter, ActorFilter, GenreFilter }; enum QueryType { NumericQuery, TextQuery }; explicit SeriesTreeModel(QStringList &headers, QObject *parent = 0); ~SeriesTreeModel(); -- cgit v1.2.3-70-g09d2