Commit efe466d0 authored by Daniel Teske's avatar Daniel Teske

QmlProject: static_cast not qobject_cast

Change-Id: I8104dab231a183a7768b3c1ac8c34b7ba4e47fdb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent f9923a30
......@@ -137,9 +137,7 @@ QString QmlProjectRunConfiguration::viewerArguments() const
QString args = m_qmlViewerArgs;
// arguments from .qmlproject file
QmlProject *project = qobject_cast<QmlProject *>(target()->project());
if (!project)
return args;
QmlProject *project = static_cast<QmlProject *>(target()->project());
foreach (const QString &importPath, project->importPaths()) {
Utils::QtcProcess::addArg(&args, "-I");
Utils::QtcProcess::addArg(&args, importPath);
......@@ -192,9 +190,7 @@ Utils::OutputFormatter *QmlProjectRunConfiguration::createOutputFormatter() cons
QmlProjectRunConfiguration::MainScriptSource QmlProjectRunConfiguration::mainScriptSource() const
{
QmlProject *project = qobject_cast<QmlProject *>(target()->project());
if (!project)
return FileInEditor;
QmlProject *project = static_cast<QmlProject *>(target()->project());
if (!project->mainFile().isEmpty())
return FileInProjectFile;
if (!m_mainScriptFilename.isEmpty())
......
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