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,10 +32,10 @@
|
||||
|
||||
#include "cmakeuicodemodelsupport.h"
|
||||
#include "cmakeproject.h"
|
||||
#include "cmaketarget.h"
|
||||
#include "cmakebuildconfiguration.h"
|
||||
|
||||
#include <cpptools/ModelManagerInterface.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
@@ -48,14 +48,10 @@ CMakeUiCodeModelSupport::CMakeUiCodeModelSupport(CPlusPlus::CppModelManagerInter
|
||||
const QString &uiHeaderFile)
|
||||
: CppTools::UiCodeModelSupport(modelmanager, source, uiHeaderFile),
|
||||
m_project(project)
|
||||
{
|
||||
|
||||
}
|
||||
{ }
|
||||
|
||||
CMakeUiCodeModelSupport::~CMakeUiCodeModelSupport()
|
||||
{
|
||||
|
||||
}
|
||||
{ }
|
||||
|
||||
QString CMakeUiCodeModelSupport::uicCommand() const
|
||||
{
|
||||
@@ -64,6 +60,7 @@ QString CMakeUiCodeModelSupport::uicCommand() const
|
||||
|
||||
QStringList CMakeUiCodeModelSupport::environment() const
|
||||
{
|
||||
CMakeBuildConfiguration *bc = m_project->activeTarget()->activeBuildConfiguration();
|
||||
return bc->environment().toStringList();
|
||||
if (!m_project || !m_project->activeTarget() || !m_project->activeTarget()->activeBuildConfiguration())
|
||||
return QStringList();
|
||||
return m_project->activeTarget()->activeBuildConfiguration()->environment().toStringList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user