summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp
diff options
context:
space:
mode:
authorJanne Kangas <janne.kangas@qt.io>2018-05-15 11:49:01 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-05-30 04:26:17 +0000
commit59c7138ef169c62a3aeec9ac51cf1b4e31bfa9de (patch)
tree414078b315034218d6491f29d7d0fb6f6db4c95e /src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp
parent51a2505a0f323a1bf689c3fe048a6b0570f2d026 (diff)
Update datainput usage during editing
Implements datainput usage tracking in order for UI to have access to up-to-date binding information when needed. Highlights datainputs that are currently bound in the datainput definition dialog. Shows "no undo" warning when a datainput is deleted. Task-ID: QT3DS-1659 Change-Id: I13d2bc1131ce6a1c78166f295291fc107395a247 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp
index 9ed7d981..12427b4f 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.cpp
@@ -888,8 +888,10 @@ void InspectorControlModel::refresh()
for (int p = 0; p < group.controlElements.count(); ++p) {
QVariant& element = group.controlElements[p];
InspectorControlBase *property = element.value<InspectorControlBase *>();
- if (property->m_property.Valid())
+ if (property->m_property.Valid()) {
updatePropertyValue(property);
+ updateControlledToggleState(property);
+ }
}
}
Q_EMIT dataChanged(index(0), index(rowCount() - 1));