diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-03 20:05:55 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-03 20:05:55 +0000 |
commit | 69dce7cc2d55835349a5a21ef2d1569c66b6d9f3 (patch) | |
tree | ab1c95d130a678fe17a38139b45ffd583fca345c /utils/themeeditor/parsetreemodel.cpp | |
parent | 88160b6e271f3d948e80e414f06a9506c98bb9a9 (diff) | |
download | rockbox-69dce7cc2d55835349a5a21ef2d1569c66b6d9f3.tar.gz rockbox-69dce7cc2d55835349a5a21ef2d1569c66b6d9f3.zip |
Theme Editor: Mocked up most of the UI, added View menu items for all dockable widgets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r-- | utils/themeeditor/parsetreemodel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp index 918903bb68..eecdc98334 100644 --- a/utils/themeeditor/parsetreemodel.cpp +++ b/utils/themeeditor/parsetreemodel.cpp | |||
@@ -131,7 +131,10 @@ int ParseTreeModel::rowCount(const QModelIndex &parent) const | |||
131 | 131 | ||
132 | int ParseTreeModel::columnCount(const QModelIndex &parent) const | 132 | int ParseTreeModel::columnCount(const QModelIndex &parent) const |
133 | { | 133 | { |
134 | return numColumns; | 134 | if(parent.isValid()) |
135 | return numColumns; | ||
136 | else | ||
137 | return numColumns; | ||
135 | } | 138 | } |
136 | 139 | ||
137 | QVariant ParseTreeModel::data(const QModelIndex &index, int role) const | 140 | QVariant ParseTreeModel::data(const QModelIndex &index, int role) const |