!16 bugfix:#I79FD0【文件管理器】【wayland】侧边栏悬停显示位置不正确

Merge pull request !16 from Augenblick/openkylin/yangtze
This commit is contained in:
Augenblick 2023-10-13 07:29:18 +00:00 committed by Gitee
commit 1d24f43042
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 18 additions and 0 deletions

View File

@ -63,6 +63,11 @@
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qtooltip.h>
#if 0 // Used to be included in Qt4 for Q_WS_MAC
# include <private/qcore_mac_p.h>
#include <private/qt_cocoa_helpers_mac_p.h>
#endif
QT_BEGIN_NAMESPACE
/*!
@ -312,7 +317,20 @@ void QTipLabel::timerEvent(QTimerEvent *e)
|| e->timerId() == expireTimer.timerId()){
hideTimer.stop();
expireTimer.stop();
#if 0 /* Used to be included in Qt4 for Q_WS_MAC */ && QT_CONFIG(effects)
if (QApplication::isEffectEnabled(Qt::UI_FadeTooltip)){
// Fade out tip on mac (makes it invisible).
// The tip will not be deleted until a new tip is shown.
// DRSWAT - Cocoa
macWindowFade(qt_mac_window_for(this));
QTipLabel::instance->fadingOut = true; // will never be false again.
}
else
hideTipImmediately();
#else
hideTipImmediately();
#endif
}
}