forked from qt-creator/qt-creator
Profile introduction
Introduce Profiles to store sets of values that describe a system/device. These profiles are held by a target, getting rid of much of the information stored in the Build-/Run-/DeployConfigurations, greatly simplifying those. This is a squash of the wip/profile branch which has been on gerrit for a while, rebased to current master. Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -32,13 +32,14 @@
|
||||
|
||||
#include "externaleditors.h"
|
||||
#include "qt4project.h"
|
||||
#include "qt4target.h"
|
||||
#include "qt4projectmanagerconstants.h"
|
||||
#include "qt4buildconfiguration.h"
|
||||
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/session.h>
|
||||
#include <qtsupport/qtprofileinformation.h>
|
||||
#include <qtsupport/qtversionmanager.h>
|
||||
#include <designer/designerconstants.h>
|
||||
|
||||
@@ -142,12 +143,10 @@ bool ExternalQtEditor::getEditorLaunchData(const QString &fileName,
|
||||
{
|
||||
// Get the binary either from the current Qt version of the project or Path
|
||||
if (const Qt4Project *project = qt4ProjectFor(fileName)) {
|
||||
if (const Qt4BaseTarget *target = project->activeTarget()) {
|
||||
if (const Qt4BuildConfiguration *qt4bc = target->activeQt4BuildConfiguration()) {
|
||||
if (const QtSupport::BaseQtVersion *qtVersion = qt4bc->qtVersion()) {
|
||||
data->binary = (qtVersion->*commandAccessor)();
|
||||
data->workingDirectory = project->projectDirectory();
|
||||
}
|
||||
if (const ProjectExplorer::Target *target = project->activeTarget()) {
|
||||
if (const QtSupport::BaseQtVersion *qtVersion = QtSupport::QtProfileInformation::qtVersion(target->profile())) {
|
||||
data->binary = (qtVersion->*commandAccessor)();
|
||||
data->workingDirectory = project->projectDirectory();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user