summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-03-13 11:50:48 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2019-03-14 17:32:34 +0000
commitb6ca1b2df7a4b48f72be7de6f89d168281b96ef8 (patch)
tree74f1f5d3ae10149c4d4051a2c9d724b41dcc0772 /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
parent4631909564c0c928b1d0ade97f385e08c97f0dde (diff)
Improve several parts of the variant tags feature
- Update slide view variants tooltip immediately upon tag/group rename. - Fix flicker upon first showing of the filtering dialog. - Word wrap the "empty variants" hint text. - Preserve groups addition order (in inspector and filter dialog). - Use predefined colors for newly created groups. - Add a border around tags in the timeline rows. - Other minor relevant tweaks. Task-number: QT3DS-3114 Change-Id: I2b345f94784fefda5fa1a004bb73dccbad2ddae9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
index 85cb5428..f842a9ca 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
@@ -474,6 +474,11 @@ void InspectorControlView::showTagContextMenu(int x, int y, const QString &group
g_StudioApp.GetCore()->getProjectFile().renameVariantTag(group, dlg.getNames().first,
dlg.getNames().second);
m_variantsGroupModel->refresh();
+
+ // refresh slide view so the tooltip show the renamed tag immediately, no need to
+ // refresh the timeline because each row gets the tags directly from the property which
+ // is always up to date.
+ g_StudioApp.GetViews()->getMainFrame()->getSlideView()->refreshVariants();
}
});
@@ -504,6 +509,11 @@ void InspectorControlView::showGroupContextMenu(int x, int y, const QString &gro
projectFile.renameVariantGroup(dlg.getNames().first, dlg.getNames().second);
g_StudioApp.GetViews()->getMainFrame()->getTimelineWidget()->refreshVariants();
m_variantsGroupModel->refresh();
+
+ // refresh slide view so the tooltip show the renamed group immediately, no need to
+ // refresh the timeline because each row gets the tags directly from the property which
+ // is always up to date.
+ g_StudioApp.GetViews()->getMainFrame()->getSlideView()->refreshVariants();
}
});