diff options
Diffstat (limited to 'utils/themeeditor/parsetreemodel.h')
-rw-r--r-- | utils/themeeditor/parsetreemodel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/parsetreemodel.h b/utils/themeeditor/parsetreemodel.h index 2d19452546..6d1f153d25 100644 --- a/utils/themeeditor/parsetreemodel.h +++ b/utils/themeeditor/parsetreemodel.h | |||
@@ -36,6 +36,12 @@ class ParseTreeModel : public QAbstractItemModel | |||
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | 37 | ||
38 | public: | 38 | public: |
39 | /* Constants */ | ||
40 | static const int numColumns = 3; | ||
41 | static const int typeColumn = 0; | ||
42 | static const int lineColumn = 1; | ||
43 | static const int valueColumn = 2; | ||
44 | |||
39 | /* Initializes a tree with a skin document in a string */ | 45 | /* Initializes a tree with a skin document in a string */ |
40 | ParseTreeModel(char* document, QObject* parent = 0); | 46 | ParseTreeModel(char* document, QObject* parent = 0); |
41 | virtual ~ParseTreeModel(); | 47 | virtual ~ParseTreeModel(); |
@@ -47,6 +53,9 @@ public: | |||
47 | int rowCount(const QModelIndex &parent) const; | 53 | int rowCount(const QModelIndex &parent) const; |
48 | int columnCount(const QModelIndex &parent) const; | 54 | int columnCount(const QModelIndex &parent) const; |
49 | QVariant data(const QModelIndex &index, int role) const; | 55 | QVariant data(const QModelIndex &index, int role) const; |
56 | QVariant headerData(int col, Qt::Orientation orientation, int role) const; | ||
57 | Qt::ItemFlags flags(const QModelIndex &index) const; | ||
58 | bool setData(const QModelIndex &index, const QVariant &value, int role); | ||
50 | 59 | ||
51 | private: | 60 | private: |
52 | ParseTreeNode* root; | 61 | ParseTreeNode* root; |