diff options
author | Tim Jenssen <tim.jenssen@theqtcompany.com> | 2016-01-19 15:05:40 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-01-21 10:23:40 +0000 |
commit | 992d544e7e7682f34628d4cb57385f24bdf834d1 (patch) | |
tree | 2b6d3a8506f416d45c83e730230d4a653d36368b /src/plugins/qmldesigner/components | |
parent | bf22f2306637aee7ab5ae9116dc895fbc906f224 (diff) | |
download | qt-creator-992d544e7e7682f34628d4cb57385f24bdf834d1.tar.gz |
QmlDesigner: add new debug settings
Change-Id: I737324016d3f2defc7e04f5e628e0f04cd34dd1a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmldesigner/components')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp index b4f7b1f2a1..4d3cb917e8 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp @@ -28,6 +28,7 @@ #include "propertyeditorvalue.h" #include "propertyeditortransaction.h" #include <qmldesignerconstants.h> +#include <qmldesignerplugin.h> #include <qmlobjectnode.h> #include <nodemetainfo.h> @@ -90,8 +91,8 @@ PropertyEditorQmlBackend::PropertyEditorQmlBackend(PropertyEditorView *propertyE { Q_ASSERT(QFileInfo(QLatin1String(":/images/button_normal.png")).exists()); - m_view->engine()->setOutputWarningsToStandardError( - !qgetenv("QTCREATOR_QTQUICKDESIGNER_PROPERTYEDITOR_SHOW_WARNINGS").isEmpty()); + m_view->engine()->setOutputWarningsToStandardError(QmlDesignerPlugin::instance() + ->settings().value(DesignerSettingsKey::SHOW_PROPERTYEDITOR_WARNINGS).toBool()); m_view->engine()->addImportPath(propertyEditorResourcesPath()); m_dummyPropertyEditorValue->setValue("#000000"); |