forked from qt-creator/qt-creator
Refactroring: Small change to make the function more readeable
This commit is contained in:
@@ -476,7 +476,6 @@ void QtVersion::updateSourcePath()
|
|||||||
// QtVersion *QtVersionManager::qtVersionForDirectory(const QString directory);
|
// QtVersion *QtVersionManager::qtVersionForDirectory(const QString directory);
|
||||||
QString QtVersionManager::findQtVersionFromMakefile(const QString &directory)
|
QString QtVersionManager::findQtVersionFromMakefile(const QString &directory)
|
||||||
{
|
{
|
||||||
QString result = QString::null;
|
|
||||||
bool debugAdding = false;
|
bool debugAdding = false;
|
||||||
QFile makefile(directory + "/Makefile" );
|
QFile makefile(directory + "/Makefile" );
|
||||||
if (makefile.exists() && makefile.open(QFile::ReadOnly)) {
|
if (makefile.exists() && makefile.open(QFile::ReadOnly)) {
|
||||||
@@ -492,14 +491,12 @@ QString QtVersionManager::findQtVersionFromMakefile(const QString &directory)
|
|||||||
QString qtDir = binDir.absolutePath();
|
QString qtDir = binDir.absolutePath();
|
||||||
if (debugAdding)
|
if (debugAdding)
|
||||||
qDebug() << "#~~ QtDir:"<<qtDir;
|
qDebug() << "#~~ QtDir:"<<qtDir;
|
||||||
// Now we have the qtDir
|
|
||||||
// look through the qtversions wheter we already have that qt version setup
|
|
||||||
return qtDir;
|
return qtDir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
makefile.close();
|
makefile.close();
|
||||||
}
|
}
|
||||||
return result;
|
return QString::null;
|
||||||
}
|
}
|
||||||
|
|
||||||
QtVersion *QtVersionManager::qtVersionForDirectory(const QString &directory)
|
QtVersion *QtVersionManager::qtVersionForDirectory(const QString &directory)
|
||||||
|
Reference in New Issue
Block a user