QApplicationPrivate::dispatchEnterLeave: remove dead code

Remove #ifdef 0 section added in 2011.

Task-number: QTBUG-121478
Pick-to: 6.7
Change-Id: I2154cd5616e2695af89cf4fc5ec9d1b3ae5572d5
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
bb10
Axel Spoerl 2024-01-25 10:44:40 +01:00
parent cd2a3e970a
commit 2d1db53f9c
1 changed files with 0 additions and 13 deletions

View File

@ -2025,19 +2025,6 @@ QWidget *QApplicationPrivate::focusNextPrevChild_helper(QWidget *toplevel, bool
*/
void QApplicationPrivate::dispatchEnterLeave(QWidget* enter, QWidget* leave, const QPointF &globalPosF)
{
#if 0
if (leave) {
QEvent e(QEvent::Leave);
QCoreApplication::sendEvent(leave, & e);
}
if (enter) {
const QPoint windowPos = enter->window()->mapFromGlobal(globalPos);
QEnterEvent e(enter->mapFromGlobal(globalPos), windowPos, globalPos);
QCoreApplication::sendEvent(enter, & e);
}
return;
#endif
if ((!enter && !leave) || (enter == leave))
return;