summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-02-13 10:14:56 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-02-18 16:08:04 +0000
commit33764aa97c0f176d54c2e02817e533c0c0be6903 (patch)
tree7719f348869319a5501573a48de2ca96d6ee094f /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
parentae1f591fc67b05768fb4f4a587c05d25707ac630 (diff)
Fix variants tags property update issue
- update the in-memory variants property after renaming or deleting a tag or group to prevent the old value from being saved to the uip if the user saves. - refresh the 'variants empty text' and 'export button enabled' states when the groups empty state change - refresh the variants when creating a new presentation Task-number: QT3DS-2983 Change-Id: I2910dd6f5b69607e29ffa0c60d90ab33a2a0fc8b 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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
index 6252c0ea..10222fcd 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp
@@ -458,6 +458,7 @@ void InspectorControlView::showContextMenu(int x, int y, int handle, int instanc
m_handle = 0;
}
+// context menu for the variants tags
void InspectorControlView::showTagContextMenu(int x, int y, const QString &group,
const QString &tag)
{
@@ -480,6 +481,7 @@ void InspectorControlView::showTagContextMenu(int x, int y, const QString &group
theContextMenu.exec(mapToGlobal({x, y}));
}
+// context menu for the variants groups
void InspectorControlView::showGroupContextMenu(int x, int y, const QString &group)
{
QMenu theContextMenu;