aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-07-07 21:44:59 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2016-07-08 11:26:01 +0000
commit5e9f80976ee082abfcb9fddae901393a4b0b889e (patch)
treef9178bfcf6de0a10d86571d3b295a134f5d73786 /src/quick/items/qquickevents_p_p.h
parentf588032c509b01ab4083467afb540d2fdc0685ac (diff)
PointerEvent point: setAccept should default to true
Change-Id: I8212120aa31aaededc0a62e598c512fc29616b1b Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 979d6e441a..b03bf43f20 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -338,7 +338,7 @@ public:
quint64 pointId() const { return m_pointId; }
bool isValid() const { return m_valid; }
bool isAccepted() const { return m_accept; }
- void setAccepted(bool accepted) { m_accept = accepted; }
+ void setAccepted(bool accepted = true) { m_accept = accepted; }
private:
QPointF m_scenePos;