summaryrefslogtreecommitdiff
path: root/utils/themeeditor/models/parsetreemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/models/parsetreemodel.h')
-rw-r--r--utils/themeeditor/models/parsetreemodel.h5
1 files changed, 4 insertions, 1 deletions
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 @@
22#include "skin_parser.h" 22#include "skin_parser.h"
23#include "skin_debug.h" 23#include "skin_debug.h"
24#include "projectmodel.h" 24#include "projectmodel.h"
25#include "devicestate.h"
25 26
26#ifndef PARSETREEMODEL_H 27#ifndef PARSETREEMODEL_H
27#define PARSETREEMODEL_H 28#define PARSETREEMODEL_H
@@ -31,6 +32,7 @@
31#include <QGraphicsScene> 32#include <QGraphicsScene>
32 33
33#include "parsetreenode.h" 34#include "parsetreenode.h"
35#include "devicestate.h"
34 36
35class ParseTreeModel : public QAbstractItemModel 37class ParseTreeModel : public QAbstractItemModel
36{ 38{
@@ -60,7 +62,8 @@ public:
60 Qt::ItemFlags flags(const QModelIndex &index) const; 62 Qt::ItemFlags flags(const QModelIndex &index) const;
61 bool setData(const QModelIndex &index, const QVariant &value, int role); 63 bool setData(const QModelIndex &index, const QVariant &value, int role);
62 64
63 QGraphicsScene* render(ProjectModel* project, const QString* file = 0); 65 QGraphicsScene* render(ProjectModel* project, DeviceState* device,
66 const QString* file = 0);
64 67
65 static QString safeSetting(ProjectModel* project, QString key, 68 static QString safeSetting(ProjectModel* project, QString key,
66 QString fallback) 69 QString fallback)