summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-19 16:10:30 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-20 13:10:03 (GMT)
commitcc1486132fcb47f74c132f3f17f7f2759b0ba165 (patch)
treeff42203404b3c5e283166c3a64400d205a12be7a /src/gui/kernel/qgesture.cpp
parent6cd7a9039eafd0a4a00b0a1cf80bdf7517a25c50 (diff)
downloadQt-cc1486132fcb47f74c132f3f17f7f2759b0ba165.zip
Qt-cc1486132fcb47f74c132f3f17f7f2759b0ba165.tar.gz
Qt-cc1486132fcb47f74c132f3f17f7f2759b0ba165.tar.bz2
Added setters to QGesture object.
Diffstat (limited to 'src/gui/kernel/qgesture.cpp')
-rw-r--r--src/gui/kernel/qgesture.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture.cpp b/src/gui/kernel/qgesture.cpp
index ac55521..2bb7de7 100644
--- a/src/gui/kernel/qgesture.cpp
+++ b/src/gui/kernel/qgesture.cpp
@@ -181,6 +181,11 @@ QRect QGesture::rect() const
return d_func()->rect;
}
+void QGesture::setRect(const QRect &rect)
+{
+ d_func()->rect = rect;
+}
+
/*!
\property QGesture::hotSpot
@@ -191,6 +196,11 @@ QPoint QGesture::hotSpot() const
return d_func()->hotSpot;
}
+void QGesture::setHotSpot(const QPoint &point)
+{
+ d_func()->hotSpot = point;
+}
+
/*!
\property QGesture::startTime
@@ -221,6 +231,11 @@ QPoint QGesture::startPos() const
return d_func()->startPos;
}
+void QGesture::setStartPos(const QPoint &point)
+{
+ d_func()->startPos = point;
+}
+
/*!
\property QGesture::lastPos
@@ -231,6 +246,11 @@ QPoint QGesture::lastPos() const
return d_func()->lastPos;
}
+void QGesture::setLastPos(const QPoint &point)
+{
+ d_func()->lastPos = point;
+}
+
/*!
\property QGesture::pos
@@ -241,6 +261,11 @@ QPoint QGesture::pos() const
return d_func()->pos;
}
+void QGesture::setPos(const QPoint &point)
+{
+ d_func()->pos = point;
+}
+
/*!
\class QPanningGesture
\since 4.6