From 7644dae9378528e49543b7f4c79920717d8d4045 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 8 Jan 2021 16:14:38 +0100 Subject: [PATCH] Add tool tip to REPL button in python editor The individual tooltips on the menu items might not be shown (possibly depending on platform). Change-Id: I0adb3f938de23dad4b70fa1f73a0b6a277b0386c Reviewed-by: Leena Miettinen --- src/plugins/python/pythoneditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp index 9b98493c83f..f0e8acab46e 100644 --- a/src/plugins/python/pythoneditor.cpp +++ b/src/plugins/python/pythoneditor.cpp @@ -87,6 +87,10 @@ static QWidget *createEditorWidget() replButton->setProperty("noArrow", true); replButton->setText(QCoreApplication::translate("Python", "REPL")); replButton->setPopupMode(QToolButton::InstantPopup); + replButton->setToolTip(QCoreApplication::translate( + "Python", + "Open interactive Python. Either importing nothing, importing the current file, or " + "importing everything (*) from the current file.")); auto menu = new QMenu(replButton); replButton->setMenu(menu); menu->addAction(Core::ActionManager::command(Constants::PYTHON_OPEN_REPL)->action());