diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-05 07:38:46 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-05 08:14:35 (GMT) |
commit | 5def7de22269906cc304c70534cef724b6127505 (patch) | |
tree | f67337e435d421b248aaf6f72e259cc52d8128bb /src | |
parent | a715d1fe5e9a9781218701afe9c10f2ba54448ea (diff) | |
download | Qt-5def7de22269906cc304c70534cef724b6127505.zip Qt-5def7de22269906cc304c70534cef724b6127505.tar.gz Qt-5def7de22269906cc304c70534cef724b6127505.tar.bz2 |
Implement QWaylandIntegration::hasOpenGL().
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandintegration.cpp | 9 | ||||
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandintegration.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandintegration.cpp b/src/plugins/platforms/wayland/qwaylandintegration.cpp index be78b82..04f3d9a 100644 --- a/src/plugins/platforms/wayland/qwaylandintegration.cpp +++ b/src/plugins/platforms/wayland/qwaylandintegration.cpp @@ -115,3 +115,12 @@ QPlatformFontDatabase *QWaylandIntegration::fontDatabase() const { return mFontDb; } + +bool QWaylandIntegration::hasOpenGL() const +{ +#ifdef QT_WAYLAND_GL_SUPPORT + return true; +#else + return false; +#endif +} diff --git a/src/plugins/platforms/wayland/qwaylandintegration.h b/src/plugins/platforms/wayland/qwaylandintegration.h index 067b6e4..20f8c5c 100644 --- a/src/plugins/platforms/wayland/qwaylandintegration.h +++ b/src/plugins/platforms/wayland/qwaylandintegration.h @@ -63,6 +63,8 @@ public: QPlatformFontDatabase *fontDatabase() const; + bool hasOpenGL() const; + private: QPlatformFontDatabase *mFontDb; QWaylandDisplay *mDisplay; |