summaryrefslogtreecommitdiff
path: root/src/plugins/qnx
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2014-06-04 13:11:25 +0200
committerDaniel Teske <daniel.teske@digia.com>2014-06-16 10:30:57 +0200
commit204de740ec09333b2eafd3fa195d9daa3f226ed9 (patch)
treeb4a33775c210a9943cda3176c0f6f43719ee881d /src/plugins/qnx
parent28985eb5a15af00c8632652db63f9a69156d6fd5 (diff)
downloadqt-creator-204de740ec09333b2eafd3fa195d9daa3f226ed9.tar.gz
QmakeProject: Replace applicationProFilePaths by idsForNodes
Change-Id: Ie10e8cb93f26eb2087272646668fafd480b0208d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qnx')
-rw-r--r--src/plugins/qnx/blackberryrunconfigurationfactory.cpp8
-rw-r--r--src/plugins/qnx/qnxrunconfigurationfactory.cpp8
2 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/qnx/blackberryrunconfigurationfactory.cpp b/src/plugins/qnx/blackberryrunconfigurationfactory.cpp
index 4d3fab95d6..22631d80ad 100644
--- a/src/plugins/qnx/blackberryrunconfigurationfactory.cpp
+++ b/src/plugins/qnx/blackberryrunconfigurationfactory.cpp
@@ -61,11 +61,9 @@ QList<Core::Id> BlackBerryRunConfigurationFactory::availableCreationIds(ProjectE
if (!qt4Project)
return ids;
- QStringList proFiles = qt4Project->applicationProFilePathes(QLatin1String(Constants::QNX_BB_RUNCONFIGURATION_PREFIX));
- foreach (const QString &pf, proFiles)
- ids << Core::Id::fromString(pf);
-
- return ids;
+ QList<QmakeProjectManager::QmakeProFileNode *> nodes = qt4Project->applicationProFiles();
+ return QmakeProjectManager::QmakeProject::idsForNodes(Core::Id(Constants::QNX_BB_RUNCONFIGURATION_PREFIX),
+ nodes);
}
QString BlackBerryRunConfigurationFactory::displayNameForId(const Core::Id id) const
diff --git a/src/plugins/qnx/qnxrunconfigurationfactory.cpp b/src/plugins/qnx/qnxrunconfigurationfactory.cpp
index 985306eb97..7e0810f8c4 100644
--- a/src/plugins/qnx/qnxrunconfigurationfactory.cpp
+++ b/src/plugins/qnx/qnxrunconfigurationfactory.cpp
@@ -61,11 +61,9 @@ QList<Core::Id> QnxRunConfigurationFactory::availableCreationIds(ProjectExplorer
QmakeProjectManager::QmakeProject *qt4Project = qobject_cast<QmakeProjectManager::QmakeProject *>(parent->project());
if (!qt4Project)
return ids;
-
- QStringList proFiles = qt4Project->applicationProFilePathes(QLatin1String(Constants::QNX_QNX_RUNCONFIGURATION_PREFIX));
- foreach (const QString &pf, proFiles)
- ids << Core::Id::fromString(pf);
- return ids;
+ QList<QmakeProjectManager::QmakeProFileNode *> nodes = qt4Project->applicationProFiles();
+ return QmakeProjectManager::QmakeProject::idsForNodes(Core::Id(Constants::QNX_QNX_RUNCONFIGURATION_PREFIX),
+ nodes);
}
QString QnxRunConfigurationFactory::displayNameForId(const Core::Id id) const