forked from qt-creator/qt-creator
		
	Introduce Project::projectFilePath()
Use it instead of retrieving this information from the document. Change-Id: I809fcb2daf59021cf503c371a5d40d75d7448796 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
		@@ -901,7 +901,7 @@ bool Qt4Project::supportsKit(Kit *k, QString *errorMessage) const
 | 
			
		||||
 | 
			
		||||
QString Qt4Project::displayName() const
 | 
			
		||||
{
 | 
			
		||||
    return QFileInfo(document()->filePath()).completeBaseName();
 | 
			
		||||
    return QFileInfo(projectFilePath()).completeBaseName();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Core::Id Qt4Project::id() const
 | 
			
		||||
@@ -1392,7 +1392,7 @@ void Qt4Project::configureAsExampleProject(const QStringList &platforms)
 | 
			
		||||
            continue;
 | 
			
		||||
 | 
			
		||||
        QList<BuildConfigurationInfo> infoList
 | 
			
		||||
                = Qt4BuildConfigurationFactory::availableBuildConfigurations(k, document()->filePath());
 | 
			
		||||
                = Qt4BuildConfigurationFactory::availableBuildConfigurations(k, projectFilePath());
 | 
			
		||||
        if (infoList.isEmpty())
 | 
			
		||||
            continue;
 | 
			
		||||
        addTarget(createTarget(k, infoList));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user