Compare commits

..

No commits in common. "27a9e0857c2142c116f38fa59f8bfca383df9efc" and "8c37fa628a56995b734e30cd8612b35af46f54fd" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -155,9 +155,9 @@ if(QT_VERSION VERSION_GREATER_EQUAL "6.3")
#NO_RESOURCE_TARGET_PATH # Can't be used for non-executable targets.
OUTPUT_TARGETS __qml_targets
IMPORTS
QtQml
QtQuick
QtQuick.Controls.Basic
QtQml/auto
QtQuick/auto
QtQuick.Controls.Basic/auto
)
if(__qml_targets)
list(APPEND __export_targets ${__qml_targets})

View File

@ -69,7 +69,7 @@ static inline void emulateLeaveEvent(QWidget *widget)
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
const QScreen *screen = widget->screen();
#else
const QScreen *screen = widget->windowHandle()->screen();
const QScreen *screen = QGuiApplication::primaryScreen();
#endif
const QPoint globalPos = QCursor::pos(screen);
if (!QRect(widget->mapToGlobal(QPoint{ 0, 0 }), widget->size()).contains(globalPos)) {