forked from qt-creator/qt-creator
Reduce usage of app_version header
Most information is available via Q(Core|Gui)Application. Add an AppInfo structure for the things that are not. This avoids that the information ends up duplicated and hardcoded in the plugins, which is not needed or desired. Change-Id: I4d565e75c42a7b8facafa90c27096ea49359215d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -4,10 +4,8 @@
|
||||
#include "procinterrupt.h"
|
||||
#include "debuggerconstants.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QGuiApplication>
|
||||
#include <QProcess> // makes kill visible on Windows.
|
||||
|
||||
using namespace Debugger::Internal;
|
||||
@@ -128,7 +126,7 @@ GDB 32bit | Api | Api | NA | Win32
|
||||
"on your own, checkout "
|
||||
"https://code.qt.io/cgit/qt-creator/binary-artifacts.git/.")
|
||||
.arg(QDir::toNativeSeparators(executable),
|
||||
QString(Core::Constants::IDE_DISPLAY_NAME));
|
||||
QGuiApplication::applicationDisplayName());
|
||||
break;
|
||||
}
|
||||
switch (QProcess::execute(executable, QStringList(QString::number(pID)))) {
|
||||
|
||||
Reference in New Issue
Block a user