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:
Oswald Buddenhagen
2009-12-04 19:22:12 +01:00
parent b4e7500dbe
commit 3657acac5f
6 changed files with 25 additions and 25 deletions

View File

@@ -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