diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-06-09 10:33:23 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-06-10 06:09:37 +0000 |
commit | 196d55ba5c8d169d120f17ca1db3d85ea1e5b4dd (patch) | |
tree | 40bbeb545185be70fa5e1eaab90aa5f55cb8126b | |
parent | 751143724a98d467509b7e5711a8d47dff97b7ba (diff) |
Output region in debug operator of QPaintEvent.
This helps to analzye flicker/painting issues.
Change-Id: I18e04598013c013386c3d019ff3098b1accec3f7
Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r-- | src/gui/kernel/qevent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 9281744692..43da81e8a6 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -3842,6 +3842,9 @@ QDebug operator<<(QDebug dbg, const QEvent *e) case QEvent::Expose: dbg << "QExposeEvent(" << static_cast<const QExposeEvent *>(e)->region() << ')'; break; + case QEvent::Paint: + dbg << "QPaintEvent(" << static_cast<const QPaintEvent *>(e)->region() << ')'; + break; case QEvent::MouseButtonPress: case QEvent::MouseMove: case QEvent::MouseButtonRelease: |