diff options
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 4 | ||||
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp index 2186788fd6..fbedf10d45 100644 --- a/utils/themeeditor/models/parsetreemodel.cpp +++ b/utils/themeeditor/models/parsetreemodel.cpp | |||
@@ -44,7 +44,7 @@ ParseTreeModel::ParseTreeModel(const char* document, QObject* parent): | |||
44 | else | 44 | else |
45 | this->root = 0; | 45 | this->root = 0; |
46 | 46 | ||
47 | scene = new QGraphicsScene(); | 47 | scene = new RBScene(); |
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||
@@ -272,7 +272,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, | |||
272 | return true; | 272 | return true; |
273 | } | 273 | } |
274 | 274 | ||
275 | QGraphicsScene* ParseTreeModel::render(ProjectModel* project, | 275 | RBScene* ParseTreeModel::render(ProjectModel* project, |
276 | DeviceState* device, | 276 | DeviceState* device, |
277 | SkinDocument* doc, const QString* file) | 277 | SkinDocument* doc, const QString* file) |
278 | { | 278 | { |
diff --git a/utils/themeeditor/models/parsetreemodel.h b/utils/themeeditor/models/parsetreemodel.h index f176b760d3..bef8cc8f48 100644 --- a/utils/themeeditor/models/parsetreemodel.h +++ b/utils/themeeditor/models/parsetreemodel.h | |||
@@ -29,10 +29,10 @@ | |||
29 | 29 | ||
30 | #include <QAbstractItemModel> | 30 | #include <QAbstractItemModel> |
31 | #include <QList> | 31 | #include <QList> |
32 | #include <QGraphicsScene> | ||
33 | 32 | ||
34 | #include "parsetreenode.h" | 33 | #include "parsetreenode.h" |
35 | #include "devicestate.h" | 34 | #include "devicestate.h" |
35 | #include "rbscene.h" | ||
36 | 36 | ||
37 | class ParseTreeModel : public QAbstractItemModel | 37 | class ParseTreeModel : public QAbstractItemModel |
38 | { | 38 | { |
@@ -64,8 +64,8 @@ public: | |||
64 | Qt::ItemFlags flags(const QModelIndex &index) const; | 64 | Qt::ItemFlags flags(const QModelIndex &index) const; |
65 | bool setData(const QModelIndex &index, const QVariant &value, int role); | 65 | bool setData(const QModelIndex &index, const QVariant &value, int role); |
66 | 66 | ||
67 | QGraphicsScene* render(ProjectModel* project, DeviceState* device, | 67 | RBScene* render(ProjectModel* project, DeviceState* device, |
68 | SkinDocument* doc, const QString* file = 0); | 68 | SkinDocument* doc, const QString* file = 0); |
69 | 69 | ||
70 | static QString safeSetting(ProjectModel* project, QString key, | 70 | static QString safeSetting(ProjectModel* project, QString key, |
71 | QString fallback) | 71 | QString fallback) |
@@ -85,7 +85,7 @@ private: | |||
85 | ParseTreeNode* root; | 85 | ParseTreeNode* root; |
86 | ParseTreeModel* sbsModel; | 86 | ParseTreeModel* sbsModel; |
87 | struct skin_element* tree; | 87 | struct skin_element* tree; |
88 | QGraphicsScene* scene; | 88 | RBScene* scene; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | 91 | ||