aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-01-07 10:25:45 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2019-01-09 13:23:16 +0000
commit1e711d50dc4c3f648ec2cd042dd718edb5c55f2d (patch)
tree86e1ba251a93eaa21072fa6a31b9b383c10b9bf4
parentce9081f34098cfe9d0766d845052fe3215a11f60 (diff)
QmlDesigner: Fix notifier for navigator
We have to update the complete row, since column 1 contains the alias indicator and column 2 contains the visibilty indicator. Task-number: QDS-274 Change-Id: Ib1688b5bceab144f9cd8ff3a784dc1efa6d4ea54 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r--src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp
index 38be04f5dc..aac2090c10 100644
--- a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp
+++ b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp
@@ -600,7 +600,7 @@ bool NavigatorTreeModel::setData(const QModelIndex &index, const QVariant &value
void NavigatorTreeModel::notifyDataChanged(const ModelNode &modelNode)
{
const QModelIndex index = indexForModelNode(modelNode);
- dataChanged(index, index);
+ dataChanged(index, index.siblingAtColumn(2));
}
static QList<ModelNode> collectParents(const QList<ModelNode> &modelNodes)