QmlDesigner: fix showDebugSettings

Change-Id: Ic3dbd8e4742246ca14fd3e834ebb25f5e63ff02c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenßen
2025-05-14 13:28:07 +02:00
committed by Tim Jenssen
parent 78c2a142dd
commit 223eef850c

View File

@@ -464,9 +464,9 @@ void SettingsPageWidget::setSettings(const DesignerSettings &settings)
m_askBeforeDeletingAssetCheckBox->setChecked( m_askBeforeDeletingAssetCheckBox->setChecked(
settings.value(DesignerSettingsKey::ASK_BEFORE_DELETING_ASSET).toBool()); settings.value(DesignerSettingsKey::ASK_BEFORE_DELETING_ASSET).toBool());
const auto showDebugSettings = settings.value(DesignerSettingsKey::SHOW_DEBUG_SETTINGS, const auto showDebugSettings = settings.value(DesignerSettingsKey::SHOW_DEBUG_SETTINGS).toBool()
Utils::qtcEnvironmentVariableIsSet("QTC_SHOW_QTQUICKDESIGNER_DEVELOPER_UI") || Utils::qtcEnvironmentVariableIsSet(
).toBool(); "QTC_SHOW_QTQUICKDESIGNER_DEVELOPER_UI");
const bool showAdvancedFeatures = !Core::ICore::isQtDesignStudio() || showDebugSettings; const bool showAdvancedFeatures = !Core::ICore::isQtDesignStudio() || showDebugSettings;
m_qmlPuppetGroupBox->setVisible(showAdvancedFeatures); m_qmlPuppetGroupBox->setVisible(showAdvancedFeatures);