Commit 9477250b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

BuildableHelperLibrary: Remove a unused method

Change-Id: I7a6355e8491fc8d3548419106f8a0d9981015653
Reviewed-by: default avatarDaniel Teske <>
parent 298d07d8
......@@ -106,20 +106,12 @@ FileName BuildableHelperLibrary::findSystemQt(const Environment &env)
QString BuildableHelperLibrary::qtVersionForQMake(const QString &qmakePath)
bool qmakeIsExecutable;
return BuildableHelperLibrary::qtVersionForQMake(qmakePath, &qmakeIsExecutable);
QString BuildableHelperLibrary::qtVersionForQMake(const QString &qmakePath, bool *qmakeIsExecutable)
*qmakeIsExecutable = !qmakePath.isEmpty();
if (!*qmakeIsExecutable)
if (qmakePath.isEmpty())
return QString();
QProcess qmake;
qmake.start(qmakePath, QStringList(QLatin1String("--version")));
if (!qmake.waitForStarted()) {
*qmakeIsExecutable = false;
qWarning("Cannot start '%s': %s", qPrintable(qmakePath), qPrintable(qmake.errorString()));
return QString();
......@@ -129,7 +121,6 @@ QString BuildableHelperLibrary::qtVersionForQMake(const QString &qmakePath, bool
return QString();
if (qmake.exitStatus() != QProcess::NormalExit) {
*qmakeIsExecutable = false;
qWarning("'%s' crashed.", qPrintable(qmakePath));
return QString();
......@@ -46,9 +46,8 @@ public:
static FileName findSystemQt(const Environment &env);
static bool isQtChooser(const QFileInfo &info);
static QString qtChooserToQmakePath(const QString &path);
// return true if the qmake at qmakePath is qt4 (used by QtVersion)
// return true if the qmake at qmakePath is a Qt (used by QtVersion)
static QString qtVersionForQMake(const QString &qmakePath);
static QString qtVersionForQMake(const QString &qmakePath, bool *qmakeIsExecutable);
// returns something like qmake4, qmake, qmake-qt4 or whatever distributions have chosen (used by QtVersion)
static QStringList possibleQMakeCommands();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment