forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -87,6 +87,10 @@ static QWidget *createEditorWidget()
|
|||||||
replButton->setProperty("noArrow", true);
|
replButton->setProperty("noArrow", true);
|
||||||
replButton->setText(QCoreApplication::translate("Python", "REPL"));
|
replButton->setText(QCoreApplication::translate("Python", "REPL"));
|
||||||
replButton->setPopupMode(QToolButton::InstantPopup);
|
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);
|
auto menu = new QMenu(replButton);
|
||||||
replButton->setMenu(menu);
|
replButton->setMenu(menu);
|
||||||
menu->addAction(Core::ActionManager::command(Constants::PYTHON_OPEN_REPL)->action());
|
menu->addAction(Core::ActionManager::command(Constants::PYTHON_OPEN_REPL)->action());
|
||||||
|
|||||||
Reference in New Issue
Block a user