diff options
Diffstat (limited to 'src/widget/wsearchlineedit.cpp')
-rw-r--r-- | src/widget/wsearchlineedit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp index 9c88f5b166..6a52d32fc7 100644 --- a/src/widget/wsearchlineedit.cpp +++ b/src/widget/wsearchlineedit.cpp @@ -185,3 +185,10 @@ void WSearchLineEdit::updateCloseButton(const QString& text) { m_clearButton->setVisible(!text.isEmpty() && !m_place); } + +bool WSearchLineEdit::event(QEvent* pEvent) { + if (pEvent->type() == QEvent::ToolTip) { + updateTooltip(); + } + return QLineEdit::event(pEvent); +} |