From f5a7d411051d3112a90e26f1e382dc1e00fb9a00 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 16 Jun 2010 22:45:24 +0200 Subject: 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 :( --- smubermodel.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'smubermodel.h') diff --git a/smubermodel.h b/smubermodel.h index fed8d86..8d82a47 100644 --- a/smubermodel.h +++ b/smubermodel.h @@ -11,6 +11,8 @@ #include #include +#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; -- cgit v1.2.3-70-g09d2