forked from qt-creator/qt-creator
Qmake: Simplify use of helper for creation of shadow dir paths
Change-Id: Iabe22a53f51e3475854e47af9e7f7efae6e16d1b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -96,9 +96,10 @@ QStringList QmakeProjectImporter::importCandidates()
|
||||
candidates << pfi.absolutePath();
|
||||
|
||||
foreach (Kit *k, KitManager::kits()) {
|
||||
QFileInfo fi(QmakeBuildConfiguration::shadowBuildDirectory(projectFilePath(), k,
|
||||
QString(), BuildConfiguration::Unknown));
|
||||
const QString baseDir = fi.absolutePath();
|
||||
const FilePath sbdir = QmakeBuildConfiguration::shadowBuildDirectory
|
||||
(projectFilePath(), k, QString(), BuildConfiguration::Unknown);
|
||||
|
||||
const QString baseDir = sbdir.toFileInfo().absolutePath();
|
||||
|
||||
foreach (const QString &dir, QDir(baseDir).entryList()) {
|
||||
const QString path = baseDir + QLatin1Char('/') + dir;
|
||||
|
||||
Reference in New Issue
Block a user