aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitem_p.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@theqtcompany.com>2015-10-14 20:58:15 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2016-03-10 13:11:00 +0000
commitf728a514abdf59e2ac556eef027a69d9f21db4b2 (patch)
treeaf077aa1e6b891d6205cbbdb0c1a4b051407fd8d /src/quick/items/qquickitem_p.h
parentefa9e6fe9a3d152ff73fb2afaa80c5693283742c (diff)
QQuickItem: Provide cheaper hover event delivery.
By keeping track of whether an item in the child hierarchy has hover enabled, we can make delivery significantly cheaper: now, if an item doesn't have hover on a child, it will simply stop trying to deliver. Change-Id: I7730e3319cf17a1ec23953f6e6d574b73b99b258 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickitem_p.h')
-rw-r--r--src/quick/items/qquickitem_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem_p.h b/src/quick/items/qquickitem_p.h
index 5a28b202fd..da1d430ac2 100644
--- a/src/quick/items/qquickitem_p.h
+++ b/src/quick/items/qquickitem_p.h
@@ -430,6 +430,7 @@ public:
bool hasCursor:1;
// Bit 32
bool hasCursorInChild:1;
+ bool hasHoverInChild:1;
bool activeFocusOnTab:1;
bool implicitAntialiasing:1;
bool antialiasingValid:1;
@@ -607,6 +608,7 @@ public:
virtual void mirrorChange() {}
void setHasCursorInChild(bool hasCursor);
+ void setHasHoverInChild(bool hasHover);
// recursive helper to let a visual parent mark its visual children
void markObjects(QV4::ExecutionEngine *e);