diff options
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r-- | utils/themeeditor/parsetreemodel.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp index aa5fb5cdb8..c99f166c41 100644 --- a/utils/themeeditor/parsetreemodel.cpp +++ b/utils/themeeditor/parsetreemodel.cpp | |||
@@ -26,8 +26,8 @@ | |||
26 | ParseTreeModel::ParseTreeModel(char* wps, QObject* parent): | 26 | ParseTreeModel::ParseTreeModel(char* wps, QObject* parent): |
27 | QAbstractItemModel(parent) | 27 | QAbstractItemModel(parent) |
28 | { | 28 | { |
29 | this->wps = skin_parse(wps); | 29 | this->tree = skin_parse(wps); |
30 | this->root = new ParseTreeNode(this->wps, 0, true); | 30 | this->root = new ParseTreeNode(tree, 0); |
31 | } | 31 | } |
32 | 32 | ||
33 | 33 | ||
@@ -36,6 +36,12 @@ ParseTreeModel::~ParseTreeModel() | |||
36 | delete root; | 36 | delete root; |
37 | } | 37 | } |
38 | 38 | ||
39 | QString genCode() | ||
40 | { | ||
41 | return QString(); | ||
42 | } | ||
43 | |||
44 | /* | ||
39 | QModelIndex ParseTreeModel::index(int row, int column, | 45 | QModelIndex ParseTreeModel::index(int row, int column, |
40 | const QModelIndex& parent) const | 46 | const QModelIndex& parent) const |
41 | { | 47 | { |
@@ -98,3 +104,4 @@ QVariant ParseTreeModel::data(const QModelIndex &index, int role) const | |||
98 | ParseTreeNode* item = static_cast<ParseTreeNode*>(index.internalPointer()); | 104 | ParseTreeNode* item = static_cast<ParseTreeNode*>(index.internalPointer()); |
99 | return item->data(index.column()); | 105 | return item->data(index.column()); |
100 | } | 106 | } |
107 | */ | ||