Commit 2766aaad authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

introduce Qt4ProFileNode::sourceDir()



complementary to buildDir()

Change-Id: I8b79775fd5187887901faed667ea83fc4fbca041
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 87fbe16f
......@@ -2455,9 +2455,14 @@ InstallsList Qt4ProFileNode::installsList() const
return m_installsList;
}
QString Qt4ProFileNode::sourceDir() const
{
return m_projectDir;
}
QString Qt4ProFileNode::buildDir(Qt4BuildConfiguration *bc) const
{
const QDir srcDirRoot = QFileInfo(m_project->rootProjectNode()->path()).absoluteDir();
const QDir srcDirRoot = m_project->rootQt4ProjectNode()->sourceDir();
const QString relativeDir = srcDirRoot.relativeFilePath(m_projectDir);
if (!bc && m_project->activeTarget())
bc = qobject_cast<Qt4BuildConfiguration *>(m_project->activeTarget()->activeBuildConfiguration());
......
......@@ -368,6 +368,7 @@ public:
void updateCodeModelSupportFromBuild(const QStringList &files);
void updateCodeModelSupportFromEditor(const QString &uiFileName, const QString &contents);
QString sourceDir() const;
QString buildDir(Qt4BuildConfiguration *bc = 0) const;
QString uiDirectory() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment