diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-02-22 10:26:16 +0200 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-02-22 08:56:38 +0000 |
commit | c9d077037e44d49180b53bfdd32bd1e669725567 (patch) | |
tree | 04e1063b08fc5f4b8dfbb62c3899365a423ba0d6 /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | |
parent | 05ec6f079013b7000288f43e4f219bce5ec2952b (diff) |
Refresh variants model after edits
Task-number: QT3DS-3091
Change-Id: I8fb23bf9c0508ceed98a1d0917005e070ea76531
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.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp index 38e4d6f9..be8cdbcf 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp @@ -474,6 +474,7 @@ void InspectorControlView::showTagContextMenu(int x, int y, const QString &group if (dlg.exec() == QDialog::Accepted) { g_StudioApp.GetCore()->getProjectFile().renameVariantTag(group, dlg.getNames().first, dlg.getNames().second); + m_variantsGroupModel->refresh(); } }); @@ -482,6 +483,7 @@ void InspectorControlView::showTagContextMenu(int x, int y, const QString &group g_StudioApp.GetCore()->getProjectFile().deleteVariantTag(group, tag); g_StudioApp.GetViews()->getMainFrame()->getTimelineWidget()->refreshVariants(); g_StudioApp.GetViews()->getMainFrame()->getSlideView()->refreshVariants(); + m_variantsGroupModel->refresh(); }); theContextMenu.exec(mapToGlobal({x, y})); @@ -500,6 +502,7 @@ void InspectorControlView::showGroupContextMenu(int x, int y, const QString &gro if (dlg.exec() == QDialog::Accepted) { projectFile.renameVariantGroup(dlg.getNames().first, dlg.getNames().second); g_StudioApp.GetViews()->getMainFrame()->getTimelineWidget()->refreshVariants(); + m_variantsGroupModel->refresh(); } }); @@ -511,6 +514,7 @@ void InspectorControlView::showGroupContextMenu(int x, int y, const QString &gro // no need to refresh variants in the timeline widget as it references the group color in // the project file m_variants, and a redraw is triggered upon color selection dialog close. g_StudioApp.GetViews()->getMainFrame()->getSlideView()->refreshVariants(); + m_variantsGroupModel->refresh(); }); auto actionDelete = theContextMenu.addAction(QObject::tr("Delete Group")); @@ -518,6 +522,7 @@ void InspectorControlView::showGroupContextMenu(int x, int y, const QString &gro projectFile.deleteVariantGroup(group); g_StudioApp.GetViews()->getMainFrame()->getTimelineWidget()->refreshVariants(); g_StudioApp.GetViews()->getMainFrame()->getSlideView()->refreshVariants(); + m_variantsGroupModel->refresh(); }); theContextMenu.exec(mapToGlobal({x, y})); |