QApplicationPrivate::dispatchEnterLeave: remove dead code
Remove #ifdef 0 section added in 2011. Task-number: QTBUG-121478 Change-Id: I2154cd5616e2695af89cf4fc5ec9d1b3ae5572d5 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 2d1db53f9c0eceb5196cd2fc571b3b48c706a70e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5e89966da1
commit
a2b1f1e690
@ -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…
x
Reference in New Issue
Block a user