diff --git a/src/plugins/coreplugin/fancyactionbar.cpp b/src/plugins/coreplugin/fancyactionbar.cpp index 14fe451198391b3b91b8c611d46862ebd4c15e29..6afad800145e2be9b07e99456f57d832edc9c798 100644 --- a/src/plugins/coreplugin/fancyactionbar.cpp +++ b/src/plugins/coreplugin/fancyactionbar.cpp @@ -106,7 +106,7 @@ void FancyToolButton::paintEvent(QPaintEvent *event) painter.restore(); } else -#endif +#endif if (isDown() || isChecked()) { painter.save(); QLinearGradient grad(rect().topLeft(), rect().topRight()); diff --git a/src/plugins/projectexplorer/miniprojecttargetselector.cpp b/src/plugins/projectexplorer/miniprojecttargetselector.cpp index 23585ef7c2fcf0e0a6710d3b2d9a673bca64ebc0..d107b660aad13cc49b562f3b55ce555496193076 100644 --- a/src/plugins/projectexplorer/miniprojecttargetselector.cpp +++ b/src/plugins/projectexplorer/miniprojecttargetselector.cpp @@ -294,7 +294,6 @@ bool MiniTargetWidget::hasBuildConfiguration() const return (m_target->buildConfigurationFactory() != 0); } - MiniProjectTargetSelector::MiniProjectTargetSelector(QAction *targetSelectorAction, QWidget *parent) : QWidget(parent), m_projectAction(targetSelectorAction) { @@ -352,6 +351,8 @@ void MiniProjectTargetSelector::setVisible(bool visible) QWidget::setVisible(visible); if (m_widgetStack->currentWidget()) m_widgetStack->currentWidget()->setFocus(); + + m_projectAction->setChecked(visible); } void MiniProjectTargetSelector::addProject(ProjectExplorer::Project* project) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 5b96347f55497130e105cef24fd5b8a108c755b5..836f87e648b05f5eb0485fb80162ec979bbfd1d5 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -695,6 +695,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er // target selector d->m_projectSelectorAction = new QAction(this); + d->m_projectSelectorAction->setCheckable(true); d->m_projectSelectorAction->setEnabled(false); QWidget *mainWindow = Core::ICore::instance()->mainWindow(); d->m_targetSelector = new Internal::MiniProjectTargetSelector(d->m_projectSelectorAction, mainWindow);