diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-07-14 13:10:50 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-07-22 16:51:33 +0200 |
commit | 66757653ff50a1385c9c4f5581517224f9d97925 (patch) | |
tree | 809bf28fc84e889aef02b6212fc5828c37070073 /src/plugins/projectexplorer/buildsettingspropertiespage.cpp | |
parent | 1e12e53e0d6afc26e42099dcf840dbda46f4574e (diff) | |
download | qt-creator-66757653ff50a1385c9c4f5581517224f9d97925.tar.gz |
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>
Diffstat (limited to 'src/plugins/projectexplorer/buildsettingspropertiespage.cpp')
-rw-r--r-- | src/plugins/projectexplorer/buildsettingspropertiespage.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp index fa507a3c70..eba28dacb7 100644 --- a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp @@ -54,35 +54,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 /// |