diff options
author | Romain Pokrzywka <romain.pokrzywka@kdab.com> | 2012-07-19 19:40:48 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-21 07:23:25 (GMT) |
commit | 432974817f4ce4f80e3d78076f3d5d804418da3a (patch) | |
tree | c80964eb63d69b3acb342f34cf122085404a5b27 /src/gui/kernel | |
parent | 833142b80c6cf84234507a8461e53c9baf58199c (diff) | |
download | Qt-432974817f4ce4f80e3d78076f3d5d804418da3a.zip Qt-432974817f4ce4f80e3d78076f3d5d804418da3a.tar.gz Qt-432974817f4ce4f80e3d78076f3d5d804418da3a.tar.bz2 |
Clean up qDebug statements
Probably leftovers, they're not matching with the code anymore
and break the build when uncommented for testing.
Remove the first one and move the second one to the right place.
Change-Id: Ib40df6036efefd6e228c280821a8719f0e6fd47e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication_qpa.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qapplication_qpa.cpp b/src/gui/kernel/qapplication_qpa.cpp index fe7505f..fdab97f 100644 --- a/src/gui/kernel/qapplication_qpa.cpp +++ b/src/gui/kernel/qapplication_qpa.cpp @@ -626,8 +626,6 @@ void QApplication::setMainWidget(QWidget *mainWidget) void QApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *e) { - - // qDebug() << "handleMouseEvent" << tlw << ev.pos() << ev.globalPos() << hex << ev.buttons(); static QWeakPointer<QWidget> implicit_mouse_grabber; QEvent::Type type; @@ -757,7 +755,6 @@ void QApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::Mouse // Remember, we might enter a modal event loop when sending the event, // so think carefully before adding code below this point. - // qDebug() << "sending mouse ev." << ev.type() << localPoint << globalPoint << ev.button() << ev.buttons() << mouseWidget << "mouse grabber" << implicit_mouse_grabber; QMouseEvent ev(type, localPoint, globalPoint, button, buttons, QApplication::keyboardModifiers()); @@ -767,6 +764,8 @@ void QApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::Mouse cursor.data()->pointerEvent(ev); } + // qDebug() << "sending mouse event" << ev.type() << localPoint << globalPoint << ev.button() << ev.buttons() << mouseWidget << "mouse grabber" << implicit_mouse_grabber; + int oldOpenPopupCount = openPopupCount; QApplication::sendSpontaneousEvent(mouseWidget, &ev); |