forked from qt-creator/qt-creator
move various functions from Qt4PriFileNode to Qt4ProFileNode
findProFileFor(), buildDir() and createProFileReader() make sense only in relation with an actual pro file anyway, so move them there.
This commit is contained in:
@@ -564,15 +564,15 @@ void Qt4RunConfiguration::updateTarget()
|
||||
return;
|
||||
//qDebug()<<"updateTarget";
|
||||
Qt4BuildConfiguration *qt4bc = qt4Project()->activeQt4BuildConfiguration();
|
||||
Qt4PriFileNode * priFileNode = qt4Project()->rootProjectNode()->findProFileFor(m_proFilePath);
|
||||
if (!priFileNode) {
|
||||
Qt4ProFileNode *proFileNode = qt4Project()->rootProjectNode()->findProFileFor(m_proFilePath);
|
||||
if (!proFileNode) {
|
||||
m_workingDir = QString::null;
|
||||
m_executable = QString::null;
|
||||
m_cachedTargetInformationValid = true;
|
||||
emit effectiveTargetInformationChanged();
|
||||
return;
|
||||
}
|
||||
ProFileReader *reader = priFileNode->createProFileReader();
|
||||
ProFileReader *reader = proFileNode->createProFileReader();
|
||||
reader->setCumulative(false);
|
||||
|
||||
// Find out what flags we pass on to qmake
|
||||
|
||||
Reference in New Issue
Block a user