summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2023-02-21 15:09:06 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2023-02-22 08:20:13 +0000
commitde8ea89e7584e1b4c4e05701f95c7f6d00948ccf (patch)
tree84f2dc90b92bd6c0d185705312c745c40711585a
parent596e41b1929328155d95f71ecfbb6c4855a3b7c9 (diff)
downloadqt-creator-de8ea89e7584e1b4c4e05701f95c7f6d00948ccf.tar.gz
QmlDesigner: emit isDesignModeEnabledChanged if mode is changed
Since we adjust the semnatics and allow a mode change if there is a ui.qml file (even though the design mode is technically disabled), we require this extra emit. Task-number: QDS-9040 Change-Id: I1536b6ee9349ab49cca77c7c29b3abe8c7bac973 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> (cherry picked from commit 06b6d5d7682a2745cbd6b127da8f20b95444c187)
-rw-r--r--src/plugins/qmldesigner/components/toolbar/toolbarbackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/toolbar/toolbarbackend.cpp b/src/plugins/qmldesigner/components/toolbar/toolbarbackend.cpp
index c9a47c23c7..3e406615c4 100644
--- a/src/plugins/qmldesigner/components/toolbar/toolbarbackend.cpp
+++ b/src/plugins/qmldesigner/components/toolbar/toolbarbackend.cpp
@@ -319,6 +319,7 @@ ToolBarBackend::ToolBarBackend(QObject *parent)
connect(Core::ModeManager::instance(), &Core::ModeManager::currentModeChanged, this, [this]() {
emit isInDesignModeChanged();
emit isInEditModeChanged();
+ emit isDesignModeEnabledChanged();
});
connect(ProjectExplorer::SessionManager::instance(),