aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow_p.h
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@qt.io>2016-07-20 16:42:40 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-07-23 06:49:54 +0000
commit7436638b51ef7b121afd5ea8135e4a3ce5913fa4 (patch)
treed34ce24c6bdc4d5a91fde55cdb149cd4e16ae7dc /src/quick/items/qquickwindow_p.h
parenta5e7897dd7705a9df3a97e5de75b5b95d6a88e25 (diff)
Use Q_GLOBAL_STATIC instead of static members of QWindowPrivate
Having the members static in QWindowPrivate only gives the benefit of tidyness, but there's still the problem of initialization order and thread-safety. Q_GLOBAL_STATIC solves those issues for us. Change-Id: I8e1279959d0bb2b16fd720cb7f4e9afb6eda6355 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r--src/quick/items/qquickwindow_p.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h
index 7e66aef9f4..15ac701c54 100644
--- a/src/quick/items/qquickwindow_p.h
+++ b/src/quick/items/qquickwindow_p.h
@@ -154,7 +154,6 @@ public:
#ifndef QT_NO_GESTURES
bool deliverNativeGestureEvent(QQuickItem *, QNativeGestureEvent *);
#endif
- static QQuickPointerDevice *touchDevice(QTouchDevice *d);
// entry point of events to the window
void handleTouchEvent(QTouchEvent *);
@@ -274,10 +273,6 @@ public:
mutable QQuickWindowIncubationController *incubationController;
- static QQuickPointerDevice *genericMouseDevice;
- static QHash<QTouchDevice *, QQuickPointerDevice *> touchDevices;
- static QHash<qint64, QQuickPointerDevice *> tabletDevices;
-
static bool defaultAlphaBuffer;
static bool dragOverThreshold(qreal d, Qt::Axis axis, QMouseEvent *event, int startDragThreshold = -1);