From 18faa88fab23152947e57dcef0bac65d5292bc6b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 6 Jul 2010 10:59:01 +0200 Subject: QmlDesigner: adding a setting for the context pane --- src/plugins/qmldesigner/designersettings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugins/qmldesigner/designersettings.cpp') diff --git a/src/plugins/qmldesigner/designersettings.cpp b/src/plugins/qmldesigner/designersettings.cpp index 68dcb7fa96..eeb4aad4a8 100644 --- a/src/plugins/qmldesigner/designersettings.cpp +++ b/src/plugins/qmldesigner/designersettings.cpp @@ -48,6 +48,8 @@ void DesignerSettings::fromSettings(QSettings *settings) QLatin1String(QmlDesigner::Constants::QML_ITEMSPACING_KEY), QVariant(0)).toInt(); snapMargin = settings->value( QLatin1String(QmlDesigner::Constants::QML_SNAPMARGIN_KEY), QVariant(0)).toInt(); + enableContextPane = settings->value( + QLatin1String(QmlDesigner::Constants::QML_CONTEXTPANE_KEY), QVariant(0)).toBool(); settings->endGroup(); settings->endGroup(); @@ -60,6 +62,7 @@ void DesignerSettings::toSettings(QSettings *settings) const settings->setValue(QLatin1String(QmlDesigner::Constants::QML_OPENDESIGNMODE_SETTINGS_KEY), openDesignMode); settings->setValue(QLatin1String(QmlDesigner::Constants::QML_ITEMSPACING_KEY), itemSpacing); settings->setValue(QLatin1String(QmlDesigner::Constants::QML_SNAPMARGIN_KEY), snapMargin); + settings->setValue(QLatin1String(QmlDesigner::Constants::QML_CONTEXTPANE_KEY), enableContextPane); settings->endGroup(); settings->endGroup(); @@ -69,6 +72,7 @@ bool DesignerSettings::equals(const DesignerSettings &other) const { return openDesignMode == other.openDesignMode && snapMargin == other.snapMargin - && itemSpacing == other.itemSpacing; + && itemSpacing == other.itemSpacing + && enableContextPane == other.enableContextPane; } -- cgit v1.2.1