forked from qt-creator/qt-creator
TargetSetupWidget: Do not always pre-expand selected kits
Does not add much value (anymore), except in the import case. Expanded targets take away a lot of space, pushing other targets or potential kits out of the visible area Change-Id: Iff0c46643b0fccef7e272a036d0c9c3a099ccc1f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -458,6 +458,7 @@ void TargetSetupPage::import(const Utils::FileName &path, bool silent)
|
||||
|
||||
widget->addBuildInfo(info, true);
|
||||
widget->setKitSelected(true);
|
||||
widget->expandWidget();
|
||||
}
|
||||
emit completeChanged();
|
||||
}
|
||||
|
@@ -148,8 +148,6 @@ void TargetSetupWidget::setKitSelected(bool b)
|
||||
m_detailsWidget->setChecked(b);
|
||||
m_detailsWidget->widget()->setEnabled(b);
|
||||
m_ignoreChange = false;
|
||||
|
||||
m_detailsWidget->setState(b ? Utils::DetailsWidget::Expanded : Utils::DetailsWidget::Collapsed);
|
||||
}
|
||||
|
||||
void TargetSetupWidget::addBuildInfo(BuildInfo *info, bool isImport)
|
||||
@@ -256,6 +254,11 @@ void TargetSetupWidget::setProjectPath(const QString &projectPath)
|
||||
addBuildInfo(info, false);
|
||||
}
|
||||
|
||||
void TargetSetupWidget::expandWidget()
|
||||
{
|
||||
m_detailsWidget->setState(Utils::DetailsWidget::Expanded);
|
||||
}
|
||||
|
||||
void TargetSetupWidget::handleKitUpdate(Kit *k)
|
||||
{
|
||||
if (k != m_kit)
|
||||
|
@@ -76,6 +76,7 @@ public:
|
||||
|
||||
QList<const BuildInfo *> selectedBuildInfoList() const;
|
||||
void setProjectPath(const QString &projectPath);
|
||||
void expandWidget();
|
||||
|
||||
signals:
|
||||
void selectedToggled() const;
|
||||
|
Reference in New Issue
Block a user