aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-03-19 15:43:49 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-20 15:51:45 +0100
commitd8fb0b485a604d690504df5b44feaeba5325dd60 (patch)
tree40783d45bc47b117a61107e9ba47df647aad6568 /src/quick/items/qquickwindow_p.h
parenta122617ac110c1d98dbf2bbde1b1b4a8d6a2ee0b (diff)
Add defaultSurfaceFormat to QQuickWindow
This static function can be used to set a surface format that is then picked up by all QQuickWindows, including the ones instantiated from QML. This introduces the ability to request higher OpenGL versions, core profile and other options also for windows that are created from QML via the ApplicationWindow element in Quick Controls applications. [ChangeLog] Added QQuickWindow::setDefaultSurfaceFormat() to set a surface format that applies to all Quick windows, including the ones created from QML. The OpenGL shading language version is now exposed to QML too in order to allow components to provide the correct shader source so shader effect items. Task-number: QTBUG-36392 Change-Id: I75a4718243d835894461f7ee0b4a383988840f9b Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r--src/quick/items/qquickwindow_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h
index 421651b483..872a054666 100644
--- a/src/quick/items/qquickwindow_p.h
+++ b/src/quick/items/qquickwindow_p.h
@@ -247,6 +247,9 @@ public:
QString *untranslatedMessage,
bool isEs);
+ static bool defaultFormatInitialized;
+ static QSurfaceFormat defaultFormat;
+
private:
static void cleanupNodesOnShutdown(QQuickItem *);
};