diff options
author | Arno <am@disconnect.de> | 2010-06-16 22:45:24 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-06-16 22:45:24 +0200 |
commit | f5a7d411051d3112a90e26f1e382dc1e00fb9a00 (patch) | |
tree | 568cb272df4a645d5208a2177b2e09647b689be3 /smubermodel.h | |
parent | c7e25a4bb75417f1615b71940694f5f4479f9043 (diff) | |
download | SheMov-f5a7d411051d3112a90e26f1e382dc1e00fb9a00.tar.gz SheMov-f5a7d411051d3112a90e26f1e382dc1e00fb9a00.tar.bz2 SheMov-f5a7d411051d3112a90e26f1e382dc1e00fb9a00.zip |
Treemodel Development
-Changed the database schema. Attached quality to files
-Subclassed SmTreeModel for SeriesTreeModel
-Made SmTreeModel virtual for that
Well, it seems there is a serious problem with the database schema.
Curiously everything inside the model works beside the db update. Seems
I have it wrong with the fks :(
Diffstat (limited to 'smubermodel.h')
-rw-r--r-- | smubermodel.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/smubermodel.h b/smubermodel.h index fed8d86..8d82a47 100644 --- a/smubermodel.h +++ b/smubermodel.h @@ -11,6 +11,8 @@ #include <QObject> #include <QSqlDatabase> +#include "seriestreemodel.h" + class SmTreeModel; class ActorModel; class QSqlQuery; @@ -19,17 +21,17 @@ class SmUberModel : public QObject { Q_OBJECT public: explicit SmUberModel(QObject *parent = 0); - SmTreeModel *seriesModel() { return mSeriesModel; } + SeriesTreeModel *seriesModel() { return mSeriesModel; } ~SmUberModel(); private: - void populateSeriesmodel(); + //void populateSeriesmodel(); //database QSqlDatabase mDb; QSqlQuery *mSeriesPartsQuery; //models - SmTreeModel *mSeriesModel; + SeriesTreeModel *mSeriesModel; SmTreeModel *mFileModel; ActorModel *mActorModel; |