summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstandardgestures.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-04 11:37:35 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-04 14:22:48 (GMT)
commit47c191d3c6b9c3fbe062068167888bed434ab6e2 (patch)
tree7b3a6f4b9b7e542bfdd79e09682fcea618e95e43 /src/gui/kernel/qstandardgestures.cpp
parent6b85ec8790aad8ac01c04f7e7bd4913d8cd8d104 (diff)
downloadQt-47c191d3c6b9c3fbe062068167888bed434ab6e2.zip
Qt-47c191d3c6b9c3fbe062068167888bed434ab6e2.tar.gz
Qt-47c191d3c6b9c3fbe062068167888bed434ab6e2.tar.bz2
Removed the startPos/lastPos/pos from the gesture classes.
It doesn't make much sense to have that low-level info neither in the base QGesture class, nor in the QPanGesture, as the latter one has offset properties instead. Reviewed-by: trustme
Diffstat (limited to 'src/gui/kernel/qstandardgestures.cpp')
-rw-r--r--src/gui/kernel/qstandardgestures.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/gui/kernel/qstandardgestures.cpp b/src/gui/kernel/qstandardgestures.cpp
index e4b9abb..4753416 100644
--- a/src/gui/kernel/qstandardgestures.cpp
+++ b/src/gui/kernel/qstandardgestures.cpp
@@ -269,13 +269,8 @@ void QPanGesture::reset()
*/
QSize QPanGesture::totalOffset() const
{
-#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA)
Q_D(const QPanGesture);
return d->totalOffset;
-#else
- QPoint pt = pos() - startPos();
- return QSize(pt.x(), pt.y());
-#endif
}
/*!
@@ -286,46 +281,8 @@ QSize QPanGesture::totalOffset() const
*/
QSize QPanGesture::lastOffset() const
{
-#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA)
Q_D(const QPanGesture);
return d->lastOffset;
-#else
- QPoint pt = pos() - lastPos();
- return QSize(pt.x(), pt.y());
-#endif
-}
-
-/*!
- \property QPanGesture::startPos
-
- \brief The start position of the gesture.
-*/
-QPoint QPanGesture::startPos() const
-{
- Q_D(const QPanGesture);
- return d->startPos;
-}
-
-/*!
- \property QPanGesture::lastPos
-
- \brief The last recorded position of the gesture.
-*/
-QPoint QPanGesture::lastPos() const
-{
- Q_D(const QPanGesture);
- return d->lastPos;
-}
-
-/*!
- \property QPanGesture::pos
-
- \brief The current position of the gesture.
-*/
-QPoint QPanGesture::pos() const
-{
- Q_D(const QPanGesture);
- return d->pos;
}
QT_END_NAMESPACE