Commit 66ddcb54 authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by Christian Kandeler
Browse files

QNX: Finding the local executable path now uses BuildTargetInfoList



This is the same as what the Remote Linux code does.

Change-Id: Ieabf59ce64f8991ddaa1c24cd5f2dbc7098e7b26
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 32e83ef8
......@@ -35,10 +35,8 @@
#include "blackberryrunconfigurationwidget.h"
#include "blackberrydeployinformation.h"
#include <projectexplorer/buildtargetinfo.h>
#include <projectexplorer/target.h>
#include <qt4projectmanager/qt4buildconfiguration.h>
#include <qt4projectmanager/qt4nodes.h>
#include <qt4projectmanager/qt4project.h>
#include <ssh/sshconnection.h>
using namespace Qnx;
......@@ -111,15 +109,8 @@ QString BlackBerryRunConfiguration::barPackage() const
QString BlackBerryRunConfiguration::localExecutableFilePath() const
{
Qt4ProjectManager::Qt4Project *qt4Project = static_cast<Qt4ProjectManager::Qt4Project *>(target()->project());
if (!qt4Project)
return QString();
Qt4ProjectManager::TargetInformation ti = qt4Project->rootQt4ProjectNode()->targetInformation(m_proFilePath);
if (!ti.valid)
return QString();
return QDir::cleanPath(ti.buildDir + QLatin1Char('/') + ti.target);
return target()->applicationTargets()
.targetForProject(Utils::FileName::fromString(m_proFilePath)).toString();
}
bool BlackBerryRunConfiguration::fromMap(const QVariantMap &map)
......
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