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:
@@ -35,6 +35,32 @@
|
||||
#include "customwidgetpluginwizardpage.h"
|
||||
#include "customwidgetwizard.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/profileinformation.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/profileinformation.h>
|
||||
#include <projectexplorer/profilemanager.h>
|
||||
#include <qtsupport/qtprofileinformation.h>
|
||||
#include <qtsupport/qtsupportconstants.h>
|
||||
|
||||
namespace {
|
||||
|
||||
class DesktopQtProfileMatcher : public ProjectExplorer::ProfileMatcher
|
||||
{
|
||||
public:
|
||||
bool matches(const ProjectExplorer::Profile *p) const
|
||||
{
|
||||
ProjectExplorer::IDevice::ConstPtr dev = ProjectExplorer::DeviceProfileInformation::device(p);
|
||||
if (dev.isNull() || dev->id() != Core::Id(ProjectExplorer::Constants::DESKTOP_DEVICE_ID))
|
||||
return false;
|
||||
QtSupport::BaseQtVersion *version = QtSupport::QtProfileInformation::qtVersion(p);
|
||||
return version && version->type() == QtSupport::Constants::DESKTOPQT;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace Qt4ProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
@@ -54,8 +80,7 @@ CustomWidgetWizardDialog::CustomWidgetWizardDialog(const QString &templateName,
|
||||
|
||||
setIntroDescription(tr("This wizard generates a Qt4 Designer Custom Widget "
|
||||
"or a Qt4 Designer Custom Widget Collection project."));
|
||||
|
||||
addTargetSetupPage(BaseQt4ProjectWizardDialog::desktopTarget());
|
||||
addTargetSetupPage();
|
||||
m_widgetPageId = addPage(m_widgetsPage);
|
||||
m_pluginPageId = addPage(m_pluginPage);
|
||||
wizardProgress()->item(m_widgetPageId)->setTitle(tr("Custom Widgets"));
|
||||
|
||||
Reference in New Issue
Block a user