diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2021-01-08 16:14:38 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2021-01-11 08:50:46 +0000 |
| commit | 7644dae9378528e49543b7f4c79920717d8d4045 (patch) | |
| tree | e095fb0d6434476227d33621fbba414034b37c16 /src/plugins/python/pythoneditor.cpp | |
| parent | 5cdcb872df803c99ec7bab892cc2b979412311c8 (diff) | |
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 <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
| -rw-r--r-- | src/plugins/python/pythoneditor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |
