forked from qt-creator/qt-creator
ProjectExplorer: Remove ITargetPanelFactory
The indirection via a factory is no longer useful, since the targetsettingspanel is hardcoded for a build and run panel. Change-Id: I75543f777a4a7df4cadf12667652424056829689 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -53,35 +53,6 @@
|
||||
using namespace ProjectExplorer;
|
||||
using namespace ProjectExplorer::Internal;
|
||||
|
||||
///
|
||||
// BuildSettingsPanelFactory
|
||||
///
|
||||
|
||||
QString BuildSettingsPanelFactory::id() const
|
||||
{
|
||||
return QLatin1String(BUILDSETTINGS_PANEL_ID);
|
||||
}
|
||||
|
||||
bool BuildSettingsPanelFactory::supports(Target *target)
|
||||
{
|
||||
return IBuildConfigurationFactory::find(target);
|
||||
}
|
||||
|
||||
PropertiesPanel *BuildSettingsPanelFactory::createPanel(Target *target)
|
||||
{
|
||||
PropertiesPanel *panel = new PropertiesPanel;
|
||||
QWidget *w = new QWidget();
|
||||
QVBoxLayout *l = new QVBoxLayout(w);
|
||||
QWidget *b = new BuildSettingsWidget(target);
|
||||
l->addWidget(b);
|
||||
l->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
||||
l->setContentsMargins(QMargins());
|
||||
panel->setWidget(w);
|
||||
panel->setIcon(QIcon(QLatin1String(":/projectexplorer/images/BuildSettings.png")));
|
||||
panel->setDisplayName(QCoreApplication::translate("BuildSettingsPanel", "Build Settings"));
|
||||
return panel;
|
||||
}
|
||||
|
||||
///
|
||||
// BuildSettingsWidget
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user