forked from qt-creator/qt-creator
qmldesigner: add ShowDebugSettings variable
also, enable it in debug mode always Task-number: QDS-5461 Change-Id: I254bbcd081ee38b57e27bcb39ddb02506b1a2d4b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -66,6 +66,7 @@ const char NAVIGATOR_REVERSE_ITEM_ORDER[] = "NavigatorReverseItemOrder";
|
||||
const char REFORMAT_UI_QML_FILES[] = "ReformatUiQmlFiles"; /* These settings are not exposed in ui. */
|
||||
const char IGNORE_DEVICE_PIXEL_RATIO[] = "IgnoreDevicePixelRaio"; /* The settings can be used to turn off the feature, if there are serious issues */
|
||||
const char STANDALONE_MODE[] = "StandAloneMode";
|
||||
const char SHOW_DEBUG_SETTINGS[] = "ShowDebugSettings";
|
||||
const char ENABLE_TIMELINEVIEW[] = "EnableTimelineView";
|
||||
const char COLOR_PALETTE_RECENT[] = "ColorPaletteRecent";
|
||||
const char COLOR_PALETTE_FAVORITE[] = "ColorPaletteFavorite";
|
||||
|
@@ -252,10 +252,14 @@ void SettingsPageWidget::setSettings(const DesignerSettings &settings)
|
||||
m_ui.askBeforeDeletingAssetCheckBox->setChecked(settings.value(
|
||||
DesignerSettingsKey::ASK_BEFORE_DELETING_ASSET).toBool());
|
||||
|
||||
if (settings.value(DesignerSettingsKey::STANDALONE_MODE).toBool()) {
|
||||
m_ui.debugGroupBox->hide();
|
||||
m_ui.featureTimelineEditorCheckBox->hide();
|
||||
}
|
||||
const auto standaloneMode = settings.value(DesignerSettingsKey::STANDALONE_MODE).toBool();
|
||||
#ifdef QT_DEBUG
|
||||
const auto showDebugSettings = true;
|
||||
#else
|
||||
const auto showDebugSettings = settings.value(DesignerSettingsKey::SHOW_DEBUG_SETTINGS).toBool();
|
||||
#endif
|
||||
m_ui.debugGroupBox->setVisible(!standaloneMode || showDebugSettings);
|
||||
m_ui.featureTimelineEditorCheckBox->setVisible(standaloneMode);
|
||||
}
|
||||
|
||||
void SettingsPageWidget::apply()
|
||||
|
Reference in New Issue
Block a user