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
parent
cd2a3e970a
commit
2d1db53f9c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue