diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
commit | c32728c91c2579688d3e7ffc4afbea1acf2385e0 (patch) | |
tree | ce1732eadbc0f4160fbe434563f2bf8b3e5b5d1c /utils/themeeditor/models | |
parent | d93164d6c94791d7be6ab71c4a6a2a84f982ba09 (diff) | |
download | rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.gz rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.zip |
Theme Editor: Began integrating device configuration panel with renderer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 6 | ||||
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.h | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp index 830a6463bb..ff8a27c660 100644 --- a/utils/themeeditor/models/parsetreemodel.cpp +++ b/utils/themeeditor/models/parsetreemodel.cpp @@ -275,7 +275,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, } QGraphicsScene* ParseTreeModel::render(ProjectModel* project, - const QString* file) + DeviceState* device, const QString* file) { scene->clear(); @@ -306,13 +306,13 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project, } RBScreen* screen = 0; - RBRenderInfo info(this, project, &settings, screen); + RBRenderInfo info(this, project, &settings, device, screen); /* Adding the screen */ screen = new RBScreen(info); scene->addItem(screen); - info = RBRenderInfo(this, project, &settings, screen); + info = RBRenderInfo(this, project, &settings, device, screen); /* Rendering the tree */ diff --git a/utils/themeeditor/models/parsetreemodel.h b/utils/themeeditor/models/parsetreemodel.h index df64403bf5..463f6ca82d 100644 --- a/utils/themeeditor/models/parsetreemodel.h +++ b/utils/themeeditor/models/parsetreemodel.h @@ -22,6 +22,7 @@ #include "skin_parser.h" #include "skin_debug.h" #include "projectmodel.h" +#include "devicestate.h" #ifndef PARSETREEMODEL_H #define PARSETREEMODEL_H @@ -31,6 +32,7 @@ #include <QGraphicsScene> #include "parsetreenode.h" +#include "devicestate.h" class ParseTreeModel : public QAbstractItemModel { @@ -60,7 +62,8 @@ public: Qt::ItemFlags flags(const QModelIndex &index) const; bool setData(const QModelIndex &index, const QVariant &value, int role); - QGraphicsScene* render(ProjectModel* project, const QString* file = 0); + QGraphicsScene* render(ProjectModel* project, DeviceState* device, + const QString* file = 0); static QString safeSetting(ProjectModel* project, QString key, QString fallback) |