summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-05 06:35:04 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-05 06:35:04 +0000
commit0b2174098d03fe6ffa0cc51817ef1c688e2556c9 (patch)
tree7321a21e96d8b388c92b858dd87d6aa78f28290c /utils
parent5d4b8e0b3fa58572c90c4e9af12a2112071b9c0f (diff)
downloadrockbox-0b2174098d03fe6ffa0cc51817ef1c688e2556c9.tar.gz
rockbox-0b2174098d03fe6ffa0cc51817ef1c688e2556c9.tar.bz2
rockbox-0b2174098d03fe6ffa0cc51817ef1c688e2556c9.zip
Theme Editor: Fixed ParseTreeModel's paramChanged function to emit the correct dataChanged range
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27709 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r--utils/themeeditor/models/parsetreemodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp
index 01d60c8775..f83443a5e4 100644
--- a/utils/themeeditor/models/parsetreemodel.cpp
+++ b/utils/themeeditor/models/parsetreemodel.cpp
@@ -367,8 +367,9 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project,
void ParseTreeModel::paramChanged(ParseTreeNode *param)
{
- QModelIndex index = indexFromPointer(param);
- emit dataChanged(index, index);
+ QModelIndex left = indexFromPointer(param);
+ QModelIndex right = createIndex(left.row(), 2, left.internalPointer());
+ emit dataChanged(left, right);
}
QModelIndex ParseTreeModel::indexFromPointer(ParseTreeNode *p)