ProjectExplorer: Remove IPanelFactory

This was the common base class of IProjectPanelFactory and
ITargetPanelFactory. Nothing was using the IPanelFactory interface, and
there's actually no common interface between those classes.

Of the old interface IPanelFactory:
id() => only used in ITargetPanelFactory
displayName() => only used in IProjectPanelFactory
priority() => only used in IProjectPanelFactory

This removes lots of boiler plate code for the unused functions.

Change-Id: I8488a4e5134fd451907f02c45b7847673e4dc714
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2014-07-11 13:20:40 +02:00
parent f42358a16e
commit 96d9f05fad
17 changed files with 12 additions and 80 deletions

View File

@@ -91,16 +91,6 @@ QString RunSettingsPanelFactory::id() const
return QLatin1String(RUNSETTINGS_PANEL_ID);
}
QString RunSettingsPanelFactory::displayName() const
{
return RunSettingsWidget::tr("Run Settings");
}
int RunSettingsPanelFactory::priority() const
{
return 20;
}
bool RunSettingsPanelFactory::supports(Target *target)
{
Q_UNUSED(target);