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. --- smubermodel.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 smubermodel.h (limited to 'smubermodel.h') diff --git a/smubermodel.h b/smubermodel.h deleted file mode 100644 index 8d82a47..0000000 --- a/smubermodel.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version - 2 of the License, or (at your option) any later version. -*/ - -#ifndef SMUBERMODEL_H -#define SMUBERMODEL_H - -#include -#include - -#include "seriestreemodel.h" - -class SmTreeModel; -class ActorModel; -class QSqlQuery; - -class SmUberModel : public QObject { - Q_OBJECT - public: - explicit SmUberModel(QObject *parent = 0); - SeriesTreeModel *seriesModel() { return mSeriesModel; } - ~SmUberModel(); - - private: - //void populateSeriesmodel(); - //database - QSqlDatabase mDb; - QSqlQuery *mSeriesPartsQuery; - - //models - SeriesTreeModel *mSeriesModel; - SmTreeModel *mFileModel; - ActorModel *mActorModel; - -}; - -#endif -- cgit v1.2.3-70-g09d2