Move some knowledge from KitAspectWidget to KitAspect

The authoritative source of information about a KitAspect is the
KitAspect itself, not the associated widget.

Change-Id: I72d3d0425b845457846a940350bab59f1ff0cc2c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-02-06 16:16:07 +01:00
parent ce19540b77
commit 09a7d2bd45
13 changed files with 50 additions and 103 deletions

View File

@@ -83,8 +83,6 @@ public:
}
private:
QString displayName() const override { return tr("Debugger"); }
QString toolTip() const override { return tr("The debugger to use for this kit."); }
QWidget *buttonWidget() const override { return m_manageButton; }
QWidget *mainWidget() const override { return m_comboBox; }
@@ -149,6 +147,8 @@ DebuggerKitAspect::DebuggerKitAspect()
{
setObjectName("DebuggerKitAspect");
setId(DebuggerKitAspect::id());
setDisplayName(tr("Debugger"));
setDescription(tr("The debugger to use for this kit."));
setPriority(28000);
}