forked from qt-creator/qt-creator
Allow the user to restrict rc creation to certain .pro
Task-number: QTCREATORBUG-10953 Change-Id: Iff1a31c007ac777bfa390d48237480ef56ffc0e4 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -1103,6 +1103,17 @@ bool QmakeProject::hasApplicationProFile(const QString &path) const
|
||||
return false;
|
||||
}
|
||||
|
||||
QList<QmakeProFileNode *> QmakeProject::nodesWithQtcRunnable(QList<QmakeProFileNode *> nodes)
|
||||
{
|
||||
std::function<bool (QmakeProFileNode *)> hasQtcRunnable = [](QmakeProFileNode *node) {
|
||||
return node->isQtcRunnable();
|
||||
};
|
||||
|
||||
if (anyOf(nodes, hasQtcRunnable))
|
||||
erase(nodes, std::not1(hasQtcRunnable));
|
||||
return nodes;
|
||||
}
|
||||
|
||||
QList<Core::Id> QmakeProject::idsForNodes(const Core::Id base, const QList<QmakeProFileNode *> &nodes)
|
||||
{
|
||||
return Utils::transform(nodes, [&base](QmakeProFileNode *node) {
|
||||
|
||||
Reference in New Issue
Block a user