Commit 1190ba17 authored by Daniel Teske's avatar Daniel Teske

Qt4ProFileNode: static_cast not qobject_cast

Change-Id: I0b8f168be6e85888b02a11682c21e7b63a33f75f
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 0190c273
......@@ -2465,7 +2465,7 @@ QString Qt4ProFileNode::buildDir(Qt4BuildConfiguration *bc) const
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());
bc = static_cast<Qt4BuildConfiguration *>(m_project->activeTarget()->activeBuildConfiguration());
if (!bc)
return QString();
return QDir(bc->buildDirectory()).absoluteFilePath(relativeDir);
......
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