Wayland: add waylandgl platform type
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 25 Oct 2010 18:36:45 +0000 (11:36 -0700)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 25 Jan 2011 17:57:10 +0000 (18:57 +0100)
This will set mUseOpenGL when -platform waylandgl is passed to clients.

src/plugins/platforms/wayland/main.cpp

index 056cc64..1bca661 100644 (file)
@@ -55,6 +55,7 @@ QStringList QWaylandIntegrationPlugin::keys() const
 {
     QStringList list;
     list << "Wayland";
+    list << "WaylandGL";
     return list;
 }
 
@@ -63,6 +64,8 @@ QPlatformIntegration *QWaylandIntegrationPlugin::create(const QString& system, c
     Q_UNUSED(paramList);
     if (system.toLower() == "wayland")
         return new QWaylandIntegration;
+    if (system.toLower() == "waylandgl")
+        return new QWaylandIntegration(true);
 
     return 0;
 }