Fix $$OUT_PWD not beeing set for finding the target/destdir

Qt Creator wouldn't find the correct target if shadow building a project
that uses $$OUT_PWD, like for example itemviews-ng.
We didn't set the necessary variable on the ProFileReader *, simplified
the code to always use a ProFileReader created for the exact
profilenode.
This commit is contained in:
dt
2009-04-28 14:30:17 +02:00
parent 842d376e21
commit 6c5e23f10e
6 changed files with 20 additions and 23 deletions

View File

@@ -123,6 +123,11 @@ public:
bool renameFile(const FileType fileType,
const QString &filePath, const QString &newFilePath);
Qt4PriFileNode *findProFileFor(const QString &string);
//internal
ProFileReader *createProFileReader() const;
protected:
void clear();
static QStringList varNames(FileType type);
@@ -142,7 +147,6 @@ protected:
ChangeType change);
QString buildDir() const;
ProFileReader *createProFileReader() const;
private slots:
void scheduleUpdate();
@@ -198,8 +202,6 @@ private:
QStringList subDirsPaths(ProFileReader *reader) const;
QStringList qBuildSubDirsPaths(const QString &scanDir) const;
void invalidate();
Qt4ProjectType m_projectType;