aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-01 15:00:00 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-06 10:39:37 +0100
commita37b5e7fb9aa017524627c9dc287b62f28136aa7 (patch)
tree97c48eff45de563447da9ecf3a6c5c53ffcf44c0 /sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py
parenta845f0a93582cd0ed0018923391c296433b2cef0 (diff)
tests: Use QGuiApplication where applicable
Pick-to: 6.2 Change-Id: I9401fa0721ea6e3df413c5a9fccb5e802d57295d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py')
-rw-r--r--sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py b/sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py
index 61367286d..5611ab75e 100644
--- a/sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py
+++ b/sources/pyside6/tests/QtOpenGL/qopenglwindow_test.py
@@ -37,7 +37,7 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from helper.usesqapplication import UsesQApplication
+from helper.usesqguiapplication import UsesQGuiApplication
from PySide6.QtCore import QSize, QTimer, Qt
from PySide6.QtGui import (QColor, QGuiApplication, QImage, QOpenGLContext,
@@ -101,7 +101,7 @@ class OpenGLWindow(QOpenGLWindow):
self.m_functions.glViewport(0, 0, self.width(), self.height())
-class QOpenGLWindowTest(UsesQApplication):
+class QOpenGLWindowTest(UsesQGuiApplication):
# On macOS, glClear(), glViewport() are rejected due to GLbitfield/GLint not being resolved properly
def test(self):
openGlWindow = OpenGLWindow()