summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-03-24 11:01:44 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-03-24 11:01:44 (GMT)
commit075a8a30560e20fee94d47aa447daa15f4cb138f (patch)
treef3a455ad791c61d78c303cde35aca0737c608b9f /src/gui/graphicsview/qgraphicsitem.h
parentcbac8c9c6c8bdb2868434563a20cdc16d9cc6402 (diff)
downloadQt-075a8a30560e20fee94d47aa447daa15f4cb138f.zip
Qt-075a8a30560e20fee94d47aa447daa15f4cb138f.tar.gz
Qt-075a8a30560e20fee94d47aa447daa15f4cb138f.tar.bz2
add QGraphicsItem::acceptTouchEvents() and setAcceptTouchEvents()
like Qt::WA_AcceptTouchEvents, QGraphicsItems don't receive touch events unless touch events are explicitly enabled.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.h')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.h b/src/gui/graphicsview/qgraphicsitem.h
index b98882d..ec3373a 100644
--- a/src/gui/graphicsview/qgraphicsitem.h
+++ b/src/gui/graphicsview/qgraphicsitem.h
@@ -203,6 +203,8 @@ public:
void setAcceptsHoverEvents(bool enabled); // obsolete
bool acceptHoverEvents() const;
void setAcceptHoverEvents(bool enabled);
+ bool acceptTouchEvents() const;
+ void setAcceptTouchEvents(bool enabled);
bool handlesChildEvents() const;
void setHandlesChildEvents(bool enabled);