diff --git a/src/libs/utils/aspects.cpp b/src/libs/utils/aspects.cpp index f22c10ac46b..f4c09ab1327 100644 --- a/src/libs/utils/aspects.cpp +++ b/src/libs/utils/aspects.cpp @@ -1324,6 +1324,7 @@ QAction *BoolAspect::action() auto act = BaseAspect::action(); // Creates it. act->setCheckable(true); act->setChecked(value()); + act->setToolTip(toolTip()); connect(act, &QAction::triggered, this, [this](bool newValue) { // The check would be nice to have in simple conditions, but if we // have an action that's used both on a settings page and as action diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index 509804edf3f..d38613898fc 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -834,6 +834,7 @@ QToolButton *PerspectivePrivate::setupToolButton(QAction *action) auto toolButton = new QToolButton(m_innerToolBar); toolButton->setProperty("panelwidget", true); toolButton->setDefaultAction(action); + toolButton->setToolTip(action->toolTip()); m_innerToolBarLayout->addWidget(toolButton); return toolButton; }