summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)