From 0f2dc49efc86281e373a9b7d657460665526c37a Mon Sep 17 00:00:00 2001 From: liuyapeng Date: Wed, 8 Nov 2023 17:32:40 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:#I79FD0=E3=80=90=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=99=A8=E3=80=91=E3=80=90wayland=E3=80=91?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=82=AC=E5=81=9C=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/kernel/qtooltip.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp index add2a44e..84054d40 100644 --- a/src/widgets/kernel/qtooltip.cpp +++ b/src/widgets/kernel/qtooltip.cpp @@ -508,14 +508,15 @@ void QToolTip::showText(const QPoint &pos, const QString &text, QWidget *w, cons else if (!QTipLabel::instance->fadingOut){ // If the tip has changed, reuse the one // that is showing (removes flickering) - QPoint localPos = pos; - if (w) - localPos = w->mapFromGlobal(pos); - if (QTipLabel::instance->tipChanged(localPos, text, w)){ - QTipLabel::instance->reuseTip(text, msecDisplayTime, pos); - QTipLabel::instance->setTipRect(w, rect); - QTipLabel::instance->placeTip(pos, w); - } + // QPoint localPos = pos; + // if (w) + // localPos = w->mapFromGlobal(pos); + // if (QTipLabel::instance->tipChanged(localPos, text, w)){ + // QTipLabel::instance->reuseTip(text, msecDisplayTime, pos); + // QTipLabel::instance->setTipRect(w, rect); + // QTipLabel::instance->placeTip(pos, w); + // } + QTipLabel::instance->hideTip(); return; } }