diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 06:35:04 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 06:35:04 +0000 |
commit | 0b2174098d03fe6ffa0cc51817ef1c688e2556c9 (patch) | |
tree | 7321a21e96d8b388c92b858dd87d6aa78f28290c | |
parent | 5d4b8e0b3fa58572c90c4e9af12a2112071b9c0f (diff) |
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
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 5 |
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) |