Skip to content

Commit

Permalink
Output region in debug operator of QPaintEvent.
Browse files Browse the repository at this point in the history
This helps to analzye flicker/painting issues.

Change-Id: I18e04598013c013386c3d019ff3098b1accec3f7
Reviewed-by: Alexandru Croitor <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
FriedemannKleint authored and ec1oud committed Jun 10, 2016
1 parent 7511437 commit 196d55b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/kernel/qevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 196d55b

Please sign in to comment.