From 69dce7cc2d55835349a5a21ef2d1569c66b6d9f3 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 3 Jun 2010 20:05:55 +0000 Subject: 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 --- utils/themeeditor/parsetreemodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/parsetreemodel.cpp') 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 int ParseTreeModel::columnCount(const QModelIndex &parent) const { - return numColumns; + if(parent.isValid()) + return numColumns; + else + return numColumns; } QVariant ParseTreeModel::data(const QModelIndex &index, int role) const -- cgit v1.2.3