diff options
| author | Akseli Lahtinen <[email protected]> | 2025-02-27 12:07:33 +0200 |
|---|---|---|
| committer | Akseli Lahtinen <[email protected]> | 2025-02-27 14:05:07 +0200 |
| commit | 99c48acc8ea5e614e447a8f62d92c8d12e9cf58b (patch) | |
| tree | 49888e1fe036e0a145fb89cfc10c4662b1b56c24 /src/views/dolphinview.cpp | |
| parent | 1c7feac8098a815eaa38d19f6fb22105517a2e6e (diff) | |
dolphinview: Add widget parameter to elided QToolTip::showText
Without this parameter the QToolTip can not always determine what
is the parent, so it will create a toplevel window in those cases.
Make sure we have dolphinview itself as a widget there, so QToolTip
and thus QtWayland can resolve what is the parent. This
avoids creating random windows when opening a tooltip.
BUG:500009
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index fc4f5e2df..d5908a081 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -2440,7 +2440,7 @@ bool DolphinView::tryShowNameToolTip(QHelpEvent *event) const KFileItem item = m_model->fileItem(index.value()); const QString text = item.text(); const QPoint pos = mapToGlobal(event->pos()); - QToolTip::showText(pos, text); + QToolTip::showText(pos, text, this); return true; } } |
