From e8f4f398c60060d4edd09065000d977cf38a9bcc Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 23 Jun 2010 20:27:32 +0200 Subject: Singleton cleanup The SmUberModel class wasn't needed at all, so I removed it. Instead I renamed SmUmberModelSingleton into a real singleton for all QAbstractItemModel*, though right now it only supports the SeriesTreeModel and FileTreeModel. But it should eventually evolve into a singleton for all QAbstractItemModel *. For this I renamed the class SmUberModelSingleton to SmModelSingleton. --- seriestreemodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'seriestreemodel.h') diff --git a/seriestreemodel.h b/seriestreemodel.h index 7933310..a0c5a23 100644 --- a/seriestreemodel.h +++ b/seriestreemodel.h @@ -24,6 +24,9 @@ class SeriesTreeModel : public SmTreeModel { explicit SeriesTreeModel(QStringList &headers, QObject *parent = 0); ~SeriesTreeModel(); + //numColumns + int numColumns() const { return 5; } + //data + flags Qt::ItemFlags flags(const QModelIndex &index) const; QVariant data(const QModelIndex &index, int role) const; -- cgit v1.2.3-70-g09d2