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:
@@ -82,36 +82,6 @@ using namespace ProjectExplorer;
|
||||
using namespace ProjectExplorer::Internal;
|
||||
using ExtensionSystem::PluginManager;
|
||||
|
||||
///
|
||||
/// RunSettingsPanelFactory
|
||||
///
|
||||
|
||||
QString RunSettingsPanelFactory::id() const
|
||||
{
|
||||
return QLatin1String(RUNSETTINGS_PANEL_ID);
|
||||
}
|
||||
|
||||
bool RunSettingsPanelFactory::supports(Target *target)
|
||||
{
|
||||
Q_UNUSED(target);
|
||||
return true;
|
||||
}
|
||||
|
||||
PropertiesPanel *RunSettingsPanelFactory::createPanel(Target *target)
|
||||
{
|
||||
PropertiesPanel *panel = new PropertiesPanel;
|
||||
QWidget *w = new QWidget();
|
||||
QVBoxLayout *l = new QVBoxLayout(w);
|
||||
QWidget *b = new RunSettingsWidget(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/RunSettings.png")));
|
||||
panel->setDisplayName(RunSettingsWidget::tr("Run Settings"));
|
||||
return panel;
|
||||
}
|
||||
|
||||
///
|
||||
/// RunSettingsWidget
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user