From 5f4c74f0456714f13a0717724e427d37e9f7fec9 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Mon, 26 Feb 2024 13:25:48 +0100 Subject: [PATCH] Doc: Fix typo in QSurfaceFormat::setDefaultFormat documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-107486 Pick-to: 6.5 Change-Id: Id22cedfa65e831574f683a33a4c2fde20570890e Reviewed-by: Tor Arne Vestbø (cherry picked from commit d83b5350689242e7815a2c2e6b6168fe1f67d943) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qsurfaceformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qsurfaceformat.cpp b/src/gui/kernel/qsurfaceformat.cpp index cc2bbea5517..74add6e9737 100644 --- a/src/gui/kernel/qsurfaceformat.cpp +++ b/src/gui/kernel/qsurfaceformat.cpp @@ -765,7 +765,7 @@ Q_GLOBAL_STATIC(QSurfaceFormat, qt_default_surface_format) question's own setFormat() function. However, it is often more convenient to set the format for all windows once at the start of the application. It also guarantees proper behavior in cases where shared contexts are required, - because settings the format via this function guarantees that all contexts + because setting the format via this function guarantees that all contexts and surfaces, even the ones created internally by Qt, will use the same format.