summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicsview.h
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-12-10 08:16:31 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-26 13:31:45 +0100
commit717a0a9d043bb5052930fa990865850e96a99eb5 (patch)
treeb75ff6205a60211d9bbbdae45d8c10ff522e39dc /src/widgets/graphicsview/qgraphicsview.h
parentc56f73cc1e8f4a0a2d55d713b152548efcc595aa (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.h')
-rw-r--r--src/widgets/graphicsview/qgraphicsview.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicsview.h b/src/widgets/graphicsview/qgraphicsview.h
index a2981aec27..d812728237 100644
--- a/src/widgets/graphicsview/qgraphicsview.h
+++ b/src/widgets/graphicsview/qgraphicsview.h
@@ -227,6 +227,11 @@ public Q_SLOTS:
void invalidateScene(const QRectF &rect = QRectF(), QGraphicsScene::SceneLayers layers = QGraphicsScene::AllLayers);
void updateSceneRect(const QRectF &rect);
+#ifndef QT_NO_RUBBERBAND
+Q_SIGNALS:
+ void rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint);
+#endif
+
protected Q_SLOTS:
void setupViewport(QWidget *widget);