summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow_p.h
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-05 23:48:47 -0700
committerLiang Qi <liang.qi@qt.io>2017-10-06 10:50:02 +0000
commit467cede61e1bd8754d1e4df0fc2f281ee9082f18 (patch)
tree2fc50c463486474e2ac429c293a1121900560685 /src/gui/kernel/qwindow_p.h
parent6486a4bd196ca2bf0047ae80e78eee06e5e18e18 (diff)
Fix build with -no-opengl and on watchOS in general
This fixes a regression introduced in 8e70241dcc. Task-number: QTBUG-63631 Change-Id: I5a2c23e06b790a482e1542ac2db3dcf25927caf2 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow_p.h')
-rw-r--r--src/gui/kernel/qwindow_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow_p.h b/src/gui/kernel/qwindow_p.h
index bf6be1bb98..2de5aab2c4 100644
--- a/src/gui/kernel/qwindow_p.h
+++ b/src/gui/kernel/qwindow_p.h
@@ -130,7 +130,9 @@ public:
QWindow *topLevelWindow() const;
+#if QT_CONFIG(opengl)
virtual QOpenGLContext *shareContext() const;
+#endif
virtual QWindow *eventReceiver() { Q_Q(QWindow); return q; }