QmlDesigner: Add puppet stop message box

You must set DEBUG_QML_PUPPET as environment variable.

Change-Id: I072ac22d2f835781e93401e4a3b876fce6e4b2e0
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Marco Bubke
2014-06-26 16:38:59 +02:00
parent 2aa7df6dff
commit 1104f50dd5

View File

@@ -34,6 +34,7 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QCryptographicHash> #include <QCryptographicHash>
#include <QDateTime> #include <QDateTime>
#include <QMessageBox>
#include <projectexplorer/kit.h> #include <projectexplorer/kit.h>
#include <projectexplorer/toolchain.h> #include <projectexplorer/toolchain.h>
@@ -42,6 +43,7 @@
#include <qtsupport/baseqtversion.h> #include <qtsupport/baseqtversion.h>
#include <qtsupport/qtkitinformation.h> #include <qtsupport/qtkitinformation.h>
#include <qtsupport/qtsupportconstants.h> #include <qtsupport/qtsupportconstants.h>
#include <coreplugin/icore.h>
#include "puppetbuildprogressdialog.h" #include "puppetbuildprogressdialog.h"
@@ -130,6 +132,11 @@ QProcess *PuppetCreator::puppetProcess(const QString &puppetPath,
} }
puppetProcess->start(puppetPath, QStringList() << socketToken << puppetMode << "-graphicssystem raster"); puppetProcess->start(puppetPath, QStringList() << socketToken << puppetMode << "-graphicssystem raster");
if (!qgetenv("DEBUG_QML_PUPPET").isEmpty())
QMessageBox::information(Core::ICore::dialogParent(),
QStringLiteral("Puppet is starting ..."),
QStringLiteral("You can now attach your debugger to the puppet."));
return puppetProcess; return puppetProcess;
} }