ProjectExplorer: Move use of some knowledge from KitAspectWidget to KitAspect

Essentially a follow-up to 09a7d2bd45.

Change-Id: I4dd9d64eec77ddf9cdccbac808e9a0978b9986bf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-11 17:10:03 +01:00
parent 1d23f8b93d
commit 470ce8a856
8 changed files with 11 additions and 13 deletions

View File

@@ -67,6 +67,7 @@ public:
m_comboBox->setEnabled(true);
refresh();
m_comboBox->setToolTip(ki->description());
connect(m_comboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, &DebuggerKitAspectWidget::currentDebuggerChanged);
@@ -96,7 +97,6 @@ private:
{
m_ignoreChanges = true;
m_comboBox->clear();
m_comboBox->setToolTip(toolTip());
m_comboBox->addItem(tr("None"), QString());
for (const DebuggerItem &item : DebuggerItemManager::debuggers())
m_comboBox->addItem(item.displayName(), item.id());