summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneevent.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-11 09:12:43 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-11 09:14:43 (GMT)
commit666299f9074235185aa7372729c84a2639224601 (patch)
tree2928f7299077d37211b78f2ae7a44e180d9e37cb /src/gui/graphicsview/qgraphicssceneevent.h
parent1c6c353ecc23a01368d785794d130131e3fb2553 (diff)
downloadQt-666299f9074235185aa7372729c84a2639224601.zip
Qt-666299f9074235185aa7372729c84a2639224601.tar.gz
Qt-666299f9074235185aa7372729c84a2639224601.tar.bz2
another API review round: change Q*TouchEvent size() functions to return rects instead
these are more useful, as already shown in the fingerpaint example
Diffstat (limited to 'src/gui/graphicsview/qgraphicssceneevent.h')
-rw-r--r--src/gui/graphicsview/qgraphicssceneevent.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneevent.h b/src/gui/graphicsview/qgraphicssceneevent.h
index 3c53f36..3eb5cce 100644
--- a/src/gui/graphicsview/qgraphicssceneevent.h
+++ b/src/gui/graphicsview/qgraphicssceneevent.h
@@ -60,6 +60,7 @@ QT_MODULE(Gui)
class QMimeData;
class QPointF;
class QSizeF;
+class QRectF;
class QWidget;
class QGraphicsSceneEventPrivate;
@@ -393,14 +394,14 @@ public:
QPointF lastScreenPos() const;
void setLastScreenPos(const QPointF &lastScreenPos);
- QSizeF size() const;
- void setSize(const QSizeF &size);
+ QRectF rect() const;
+ void setRect(const QRectF &rect);
- QSizeF sceneSize() const;
- void setSceneSize(const QSizeF &sceneSize);
+ QRectF sceneRect() const;
+ void setSceneRect(const QRectF &sceneRect);
- QSizeF screenSize() const;
- void setScreenSize(const QSizeF &screenSize);
+ QRectF screenRect() const;
+ void setScreenRect(const QRectF &screenRect);
qreal pressure() const;
void setPressure(qreal pressure);