From ae9af795e158d029f352594e0d60212ae9f3d36a Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 26 Jun 2014 17:36:49 +0200 Subject: [PATCH] QmlDesigner: Warning about using fallback puppet Change-Id: I06b4b8d0fd3977f0ac4626a6642524d7641d8adc Reviewed-by: Tim Jenssen --- .../designercore/instances/puppetcreator.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/designercore/instances/puppetcreator.cpp b/src/plugins/qmldesigner/designercore/instances/puppetcreator.cpp index 158b277c3a3..826cea64617 100644 --- a/src/plugins/qmldesigner/designercore/instances/puppetcreator.cpp +++ b/src/plugins/qmldesigner/designercore/instances/puppetcreator.cpp @@ -45,9 +45,9 @@ #include #include +#include #include "puppetbuildprogressdialog.h" -#include namespace QmlDesigner { @@ -167,9 +167,24 @@ bool PuppetCreator::build(const QString &qmlPuppetProjectFilePath) const buildSucceeded = startBuildProcess(buildDirectory.path(), buildCommand(), QStringList(), &progressDialog); progressDialog.hide(); } + + if (!buildSucceeded) + QmlDesignerWarning::show(QCoreApplication::translate("PuppetCreator", "Emulation layer building was unsuccessful"), + QCoreApplication::translate("PuppetCreator", + "The emulation layer(Qml Puppet) cannot was built. " + "So now the fallback version will be used " + "which is not supporting all features." + )); } else { buildSucceeded = true; } + } else { + QmlDesignerWarning::show(QCoreApplication::translate("PuppetCreator", "Qt Version is not supported"), + QCoreApplication::translate("PuppetCreator", + "The emulation layer(Qml Puppet) cannot be built because the Qt version is to old " + "or it can not run native on your computer. So now the fallback version will be used " + "which is not supporting all features." + )); } return buildSucceeded;