summaryrefslogtreecommitdiff
path: root/utils/themeeditor/models
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r--utils/themeeditor/models/parsetreemodel.cpp4
-rw-r--r--utils/themeeditor/models/parsetreemodel.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp
index 2186788..fbedf10 100644
--- a/utils/themeeditor/models/parsetreemodel.cpp
+++ b/utils/themeeditor/models/parsetreemodel.cpp
@@ -44,7 +44,7 @@ ParseTreeModel::ParseTreeModel(const char* document, QObject* parent):
else
this->root = 0;
- scene = new QGraphicsScene();
+ scene = new RBScene();
}
@@ -272,7 +272,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value,
return true;
}
-QGraphicsScene* ParseTreeModel::render(ProjectModel* project,
+RBScene* ParseTreeModel::render(ProjectModel* project,
DeviceState* device,
SkinDocument* doc, const QString* file)
{
diff --git a/utils/themeeditor/models/parsetreemodel.h b/utils/themeeditor/models/parsetreemodel.h
index f176b76..bef8cc8 100644
--- a/utils/themeeditor/models/parsetreemodel.h
+++ b/utils/themeeditor/models/parsetreemodel.h
@@ -29,10 +29,10 @@
#include <QAbstractItemModel>
#include <QList>
-#include <QGraphicsScene>
#include "parsetreenode.h"
#include "devicestate.h"
+#include "rbscene.h"
class ParseTreeModel : public QAbstractItemModel
{
@@ -64,8 +64,8 @@ public:
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &index, const QVariant &value, int role);
- QGraphicsScene* render(ProjectModel* project, DeviceState* device,
- SkinDocument* doc, const QString* file = 0);
+ RBScene* render(ProjectModel* project, DeviceState* device,
+ SkinDocument* doc, const QString* file = 0);
static QString safeSetting(ProjectModel* project, QString key,
QString fallback)
@@ -85,7 +85,7 @@ private:
ParseTreeNode* root;
ParseTreeModel* sbsModel;
struct skin_element* tree;
- QGraphicsScene* scene;
+ RBScene* scene;
};