diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2012-12-10 08:16:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-26 13:31:45 +0100 |
commit | 717a0a9d043bb5052930fa990865850e96a99eb5 (patch) | |
tree | b75ff6205a60211d9bbbdae45d8c10ff522e39dc /src/widgets/graphicsview/qgraphicsview_p.h | |
parent | c56f73cc1e8f4a0a2d55d713b152548efcc595aa (diff) |
QGraphicsView - emit signal when rubber band changes.
The rubberBandRect function is nice to have, but this patch
makes it easier to track the rubber band by emiting a signal
on change.
That makes it easier (and less clumsy/hacky) to show information
related to the rubber band.
Change-Id: If65eb85d743a1804be3fdb823a821423411e9745
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsview_p.h')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsview_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicsview_p.h b/src/widgets/graphicsview/qgraphicsview_p.h index d8654ff10f..44d37ef992 100644 --- a/src/widgets/graphicsview/qgraphicsview_p.h +++ b/src/widgets/graphicsview/qgraphicsview_p.h @@ -110,6 +110,7 @@ public: QPoint mousePressViewPoint; QPoint mousePressScreenPoint; QPointF lastMouseMoveScenePoint; + QPointF lastRubberbandScenePoint; QPoint lastMouseMoveScreenPoint; QPoint dirtyScrollOffset; Qt::MouseButton mousePressButton; |