From 51622a00121615040bd8862761dcd4d1581fac48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Thu, 1 Mar 2012 22:53:58 +0100 Subject: [PATCH] Make sure the tooltip for the "show definition" menu entry is displayed --- qt/custom_popup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/custom_popup.cpp b/qt/custom_popup.cpp index 359d06b..41d30ca 100644 --- a/qt/custom_popup.cpp +++ b/qt/custom_popup.cpp @@ -48,8 +48,8 @@ void CustomPopup::addShowDefinitionEntry(QMenu &iPopup, QString iWord) { m_word = iWord; - QAction *definitionAction = new QAction(_q("Show definition"), this); - definitionAction->setStatusTip(_q("Show definition of the selected word in an external browser")); + QAction *definitionAction = new QAction(_q("Show definition"), m_widget); + definitionAction->setStatusTip(_q("Show definition of '%1' in an external browser").arg(m_word)); QObject::connect(definitionAction, SIGNAL(triggered()), this, SLOT(definitionRequested()));