!24 tooltip概率不显示问题

Merge pull request !24 from hanpinlong/temp0609
This commit is contained in:
hanpinlong 2024-06-09 06:25:11 +00:00 committed by Gitee
commit f4ec69a3d2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 16 additions and 9 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
qtbase-opensource-src (5.15.10+dfsg-3ok2.6) nile; urgency=medium
* BUG号
* 需求号:无
* 其他更改tooltip概率不显示问题
-- hanpinlong <hanpinlong@kylinos.cn> Sun, 09 Jun 2024 14:19:32 +0800
qtbase-opensource-src (5.15.10+dfsg-3ok2.5) nile; urgency=medium qtbase-opensource-src (5.15.10+dfsg-3ok2.5) nile; urgency=medium
* BUG号 * BUG号

View File

@ -508,15 +508,14 @@ void QToolTip::showText(const QPoint &pos, const QString &text, QWidget *w, cons
else if (!QTipLabel::instance->fadingOut){ else if (!QTipLabel::instance->fadingOut){
// If the tip has changed, reuse the one // If the tip has changed, reuse the one
// that is showing (removes flickering) // that is showing (removes flickering)
// QPoint localPos = pos; QPoint localPos = pos;
// if (w) if (w)
// localPos = w->mapFromGlobal(pos); localPos = w->mapFromGlobal(pos);
// if (QTipLabel::instance->tipChanged(localPos, text, w)){ if (QTipLabel::instance->tipChanged(localPos, text, w)){
// QTipLabel::instance->reuseTip(text, msecDisplayTime, pos); QTipLabel::instance->reuseTip(text, msecDisplayTime, pos);
// QTipLabel::instance->setTipRect(w, rect); QTipLabel::instance->setTipRect(w, rect);
// QTipLabel::instance->placeTip(pos, w); QTipLabel::instance->placeTip(pos, w);
// } }
QTipLabel::instance->hideTip();
return; return;
} }
} }