diff --git a/src/gui/guikernel/qguiapplication.cpp b/src/gui/guikernel/qguiapplication.cpp index ceff68f6fd..f5be52e053 100644 --- a/src/gui/guikernel/qguiapplication.cpp +++ b/src/gui/guikernel/qguiapplication.cpp @@ -84,7 +84,6 @@ bool QGuiApplicationPrivate::app_do_modal = false; int qt_last_x = 0; int qt_last_y = 0; -QPointer QGuiApplicationPrivate::qt_last_mouse_receiver = 0; QWidgetList QGuiApplicationPrivate::qt_modal_stack; @@ -666,8 +665,6 @@ void QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyE void QGuiApplicationPrivate::processEnterEvent(QWindowSystemInterfacePrivate::EnterEvent *e) { -// QGuiApplicationPrivate::dispatchEnterLeave(e->enter.data(),0); -// qt_last_mouse_receiver = e->enter.data(); QEvent event(QEvent::Enter); QApplication::sendSpontaneousEvent(e->enter.data(), &event); } diff --git a/src/gui/guikernel/qguiapplication_p.h b/src/gui/guikernel/qguiapplication_p.h index 2cc2e54f6c..76f6e827b8 100644 --- a/src/gui/guikernel/qguiapplication_p.h +++ b/src/gui/guikernel/qguiapplication_p.h @@ -120,8 +120,6 @@ public: static bool app_do_modal; - static QPointer qt_last_mouse_receiver; - static QWidgetList qt_modal_stack; static Qt::MouseButtons buttons; diff --git a/src/gui/kernel/qwidgetwindow_qpa.cpp b/src/gui/kernel/qwidgetwindow_qpa.cpp index 4d79246925..3e062892fa 100644 --- a/src/gui/kernel/qwidgetwindow_qpa.cpp +++ b/src/gui/kernel/qwidgetwindow_qpa.cpp @@ -104,7 +104,6 @@ void QWidgetWindow::handleEnterLeaveEvent(QEvent *event) } else { QApplicationPrivate::dispatchEnterLeave(m_widget, 0); qt_last_mouse_receiver = m_widget; - printf("Enter event: %p\n", m_widget); } }