aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrendercontrol
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-22 13:00:03 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-22 16:10:52 +0200
commit4e266103ad8b75d71fb176a2f774faf71997123d (patch)
treeecf675969c45271ca2c9d3e5199631f4f1b9c129 /tests/auto/quick/qquickrendercontrol
parent38bd2bd83144e3b7e7935e3730c109358b3e5740 (diff)
Rename setSceneGraphBackend to setGraphicsApi
...and fix up the docs. The string-based setSceneGraphBackend() stays of course (the docs have been enhanced, however). The GraphicsApi enum-based overload is now renamed to setGraphicsApi(). Using the same name for both functions is a historical artifact, reflecting the evolution (5.0 - 5.8 - 5.14). In 6.0 we can give it a more appropriate name, since it does not have much to do with "backends" from the user's perspective. Change-Id: Id75dbf81f50a148797e5b5de9be4000153737473 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickrendercontrol')
-rw-r--r--tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp
index 7e8fcbfcf1..a2217f5427 100644
--- a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp
+++ b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp
@@ -147,7 +147,7 @@ void tst_RenderControl::renderAndReadBackWithRhi()
// QQuickRenderControl, etc. instances are destroyed, before creating new
// ones. That's why it is possible to have this test run with multiple QRhi
// backends.
- QQuickWindow::setSceneGraphBackend(api);
+ QQuickWindow::setGraphicsApi(api);
QScopedPointer<QQuickRenderControl> renderControl(new QQuickRenderControl);
QScopedPointer<QQuickWindow> quickWindow(new QQuickWindow(renderControl.data()));
@@ -316,7 +316,7 @@ void tst_RenderControl::renderAndReadBackWithVulkanNative()
if (!vulkanInstance.isValid())
QSKIP("Skipping native Vulkan test due to failing to create a VkInstance");
- QQuickWindow::setSceneGraphBackend(QSGRendererInterface::VulkanRhi);
+ QQuickWindow::setGraphicsApi(QSGRendererInterface::VulkanRhi);
// We will create our own VkDevice and friends, which will then get used by
// Qt Quick as well (instead of creating its own objects), so this is a test