From 9d2cc4dd766ca6538e17040b6ac845ed880ab0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 10 Jun 2022 17:34:41 +0200 Subject: Fix typos in docs and comments Found by codespell Pick-to: 6.4 Change-Id: Ie3e301a23830c773a2e9aff487c702a223d246eb Reviewed-by: Nicholas Bennett Reviewed-by: Edward Welbourne --- src/openglwidgets/qopenglwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openglwidgets') diff --git a/src/openglwidgets/qopenglwidget.cpp b/src/openglwidgets/qopenglwidget.cpp index d839a99f76..a3ffa0c0fa 100644 --- a/src/openglwidgets/qopenglwidget.cpp +++ b/src/openglwidgets/qopenglwidget.cpp @@ -145,7 +145,7 @@ QT_BEGIN_NAMESPACE loading which means applications are not directly linking to an GL implementation and thus direct function calls are not feasible. - In paintGL() the current context is always accessible by caling + In paintGL() the current context is always accessible by calling QOpenGLContext::currentContext(). From this context an already initialized, ready-to-be-used QOpenGLFunctions instance is retrievable by calling QOpenGLContext::functions(). An alternative to prefixing every GL call is to @@ -1425,7 +1425,7 @@ bool QOpenGLWidget::event(QEvent *e) if (isHidden()) break; Q_FALLTHROUGH(); - case QEvent::Show: // reparenting may not lead to a resize so reinitalize on Show too + case QEvent::Show: // reparenting may not lead to a resize so reinitialize on Show too if (d->initialized && !d->wrapperTexture && window()->windowHandle()) { // Special case: did grabFramebuffer() for a hidden widget that then became visible. // Recreate all resources since the context now needs to share with the TLW's. -- cgit v1.2.3