diff options
author | Arno <am@disconnect.de> | 2010-06-23 20:27:32 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-06-23 20:31:26 +0200 |
commit | e8f4f398c60060d4edd09065000d977cf38a9bcc (patch) | |
tree | 5860233bf58d484d779169d3cc88a92bc6fb3e1f /smubermodel.h | |
parent | f81a83e91b77d41384667eec02409be05e088a06 (diff) | |
download | SheMov-e8f4f398c60060d4edd09065000d977cf38a9bcc.tar.gz SheMov-e8f4f398c60060d4edd09065000d977cf38a9bcc.tar.bz2 SheMov-e8f4f398c60060d4edd09065000d977cf38a9bcc.zip |
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.
Diffstat (limited to 'smubermodel.h')
-rw-r--r-- | smubermodel.h | 40 |
1 files changed, 0 insertions, 40 deletions
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 <QObject> -#include <QSqlDatabase> - -#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 |