aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-10 08:09:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-11 11:18:21 +0200
commit6f4fdce07fa2e75e09dcc90a76ea6d741fb58e74 (patch)
treef2200097014243dafbc89532727f28179ffac42f /src/quick/items/qquickwindow.h
parente96ebaec7de454ac0f39a2fc53f687faac9ae8ff (diff)
Rename setPersistentOpenGLContext and revise related docs
These persistent hints are still taken into account by the threaded render loop, so keep them, but get rid of "OpenGL Context" from the function names. The qquickwindow autotest has been updated accordingly, and with a few OpenGL-related cleanups it now runs without any warnings or skips with OpenGL-on-RHI, while it skips only 1 case when running with some other API, and 2 with the software backend. [ChangeLog][Qt Quick][QQuickWindow] The setPersistentOpenGLContext() and isPersistentOpenGLContext() functions are renamed to setPersistentGraphics() and isPersistentGraphics(). Change-Id: Ifc4cc7c4b94fe9f7e402b39ca4f28952dcafd588 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.h')
-rw-r--r--src/quick/items/qquickwindow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/items/qquickwindow.h b/src/quick/items/qquickwindow.h
index f701cd1deb..28ff08786a 100644
--- a/src/quick/items/qquickwindow.h
+++ b/src/quick/items/qquickwindow.h
@@ -170,10 +170,10 @@ public:
static bool hasDefaultAlphaBuffer();
static void setDefaultAlphaBuffer(bool useAlpha);
- void setPersistentOpenGLContext(bool persistent); // ### Qt 6 is this relevant / usable anymore?
- bool isPersistentOpenGLContext() const;
+ void setPersistentGraphics(bool persistent);
+ bool isPersistentGraphics() const;
- void setPersistentSceneGraph(bool persistent); // ### Qt 6 is this relevant / usable anymore?
+ void setPersistentSceneGraph(bool persistent);
bool isPersistentSceneGraph() const;
QOpenGLContext *openglContext() const; // ### Qt 6 consider if this is kept or not