forked from qt-creator/qt-creator
ProjectExplorer: Drop KitAspect::defaultValue()
The functionality of this function overlapped with KitAspect::setup(),
leading to unclear responsibilities and resulting in bugs such as the
one fixed by 776d54e435.
Therefore, we drop the defaultValue() function, merging its
implementation with setup() where applicable.
Change-Id: Iefa9c3df8b76e97ddf9ad388516621f7ea6558d4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -107,7 +107,6 @@ Core::Id QbsKitAspect::id()
|
||||
return "Qbs.KitInformation";
|
||||
}
|
||||
|
||||
QVariant QbsKitAspect::defaultValue(const Kit *) const { return QString(); }
|
||||
QList<Task> QbsKitAspect::validate(const Kit *) const { return QList<Task>(); }
|
||||
|
||||
KitAspect::ItemList QbsKitAspect::toUserOutput(const Kit *k) const
|
||||
|
||||
@@ -44,7 +44,6 @@ public:
|
||||
private:
|
||||
static Core::Id id();
|
||||
|
||||
QVariant defaultValue(const ProjectExplorer::Kit *) const override;
|
||||
QList<ProjectExplorer::Task> validate(const ProjectExplorer::Kit *) const override;
|
||||
ItemList toUserOutput(const ProjectExplorer::Kit *) const override;
|
||||
ProjectExplorer::KitAspectWidget *createConfigWidget(ProjectExplorer::Kit *) const override;
|
||||
|
||||
Reference in New Issue
Block a user