From 9766f14eaf8c46eb28bad52954c40e11bc14baaf Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 18 May 2010 14:46:48 +0200
Subject: [PATCH] QmlDesigner.propertyEditor: avoid Qml warnings

Task-number: BAUHAUS-274
---
 .../qmldesigner/components/propertyeditor/propertyeditor.cpp     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index 0586095a8a9..df29621dd63 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -88,6 +88,7 @@ PropertyEditor::NodeType::NodeType(PropertyEditor *propertyEditor) :
 
     m_view->setResizeMode(QDeclarativeView::SizeRootObjectToView);
     QDeclarativeContext *ctxt = m_view->rootContext();
+    m_view->engine()->setOutputWarningsToStandardError(debug);
     m_dummyPropertyEditorValue->setValue("#000000");
     ctxt->setContextProperty("dummyBackendValue", m_dummyPropertyEditorValue.data());
     m_contextObject->setBackendValues(&m_backendValuesPropertyMap);
-- 
GitLab