forked from qt-creator/qt-creator
		
	ProjectNodes: Refactor runConfigurationsFor()
Rename to runConfigurations() and remove the node argument which is available as 'this'. Adjust const-ness of node argument in RunConfigurationFactory::runConfigurationsForNode Change-Id: Icb63e96a305152f90135a2656536de2581faafaf Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
		@@ -306,12 +306,6 @@ bool QbsBaseProjectNode::renameFile(const QString &filePath, const QString &newF
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QList<ProjectExplorer::RunConfiguration *> QbsBaseProjectNode::runConfigurationsFor(ProjectExplorer::Node *node)
 | 
			
		||||
{
 | 
			
		||||
    Q_UNUSED(node);
 | 
			
		||||
    return QList<ProjectExplorer::RunConfiguration *>();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// --------------------------------------------------------------------
 | 
			
		||||
// QbsGroupNode:
 | 
			
		||||
// --------------------------------------------------------------------
 | 
			
		||||
@@ -548,9 +542,8 @@ void QbsProductNode::setQbsProductData(const qbs::ProductData prd)
 | 
			
		||||
        emitNodeUpdated();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QList<ProjectExplorer::RunConfiguration *> QbsProductNode::runConfigurationsFor(ProjectExplorer::Node *node)
 | 
			
		||||
QList<ProjectExplorer::RunConfiguration *> QbsProductNode::runConfigurations() const
 | 
			
		||||
{
 | 
			
		||||
    Q_UNUSED(node);
 | 
			
		||||
    QList<ProjectExplorer::RunConfiguration *> result;
 | 
			
		||||
    QbsProjectNode *pn = qobject_cast<QbsProjectNode *>(projectNode());
 | 
			
		||||
    if (!isEnabled() || !pn || !pn->qbsProject().isValid()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user