forked from qt-creator/qt-creator
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:
@@ -62,16 +62,6 @@ QString BuildSettingsPanelFactory::id() const
|
||||
return QLatin1String(BUILDSETTINGS_PANEL_ID);
|
||||
}
|
||||
|
||||
QString BuildSettingsPanelFactory::displayName() const
|
||||
{
|
||||
return QCoreApplication::translate("BuildSettingsPanelFactory", "Build Settings");
|
||||
}
|
||||
|
||||
int BuildSettingsPanelFactory::priority() const
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
bool BuildSettingsPanelFactory::supports(Target *target)
|
||||
{
|
||||
return IBuildConfigurationFactory::find(target);
|
||||
|
||||
Reference in New Issue
Block a user