diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp index f8f4212d010..a992c629ba5 100644 --- a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp +++ b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp @@ -48,6 +48,10 @@ #include #include #include +#include +#include +#include +#include #include @@ -357,6 +361,12 @@ void FunctionDeclDefLink::showMarker(CPPEditorWidget *editor) message = tr("Apply changes to definition"); else message = tr("Apply changes to declaration"); + + Core::ActionManager *actionManager = Core::ICore::instance()->actionManager(); + Core::Command *quickfixCommand = actionManager->command(TextEditor::Constants::QUICKFIX_THIS); + if (quickfixCommand) + message = Utils::ProxyAction::stringWithAppendedShortcut(message, quickfixCommand->keySequence()); + marker.tooltip = message; marker.data = QVariant::fromValue(Marker()); markers += marker;