diff options
Diffstat (limited to 'examples/opengl/qopenglwidget')
-rw-r--r-- | examples/opengl/qopenglwidget/glwidget.cpp | 4 | ||||
-rw-r--r-- | examples/opengl/qopenglwidget/mainwindow.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/opengl/qopenglwidget/glwidget.cpp b/examples/opengl/qopenglwidget/glwidget.cpp index 96d5d51321..e2a3ea4fc5 100644 --- a/examples/opengl/qopenglwidget/glwidget.cpp +++ b/examples/opengl/qopenglwidget/glwidget.cpp @@ -358,7 +358,7 @@ void GLWidget::paintGL() painter.endNativePainting(); if (m_showBubbles) { - for (Bubble *bubble : qAsConst(m_bubbles)) + for (Bubble *bubble : std::as_const(m_bubbles)) bubble->drawBubble(&painter); } @@ -371,7 +371,7 @@ void GLWidget::paintGL() painter.end(); - for (Bubble *bubble : qAsConst(m_bubbles)) + for (Bubble *bubble : std::as_const(m_bubbles)) bubble->move(rect()); if (!(m_frames % 100)) { diff --git a/examples/opengl/qopenglwidget/mainwindow.cpp b/examples/opengl/qopenglwidget/mainwindow.cpp index 409ff7b507..c383a692d5 100644 --- a/examples/opengl/qopenglwidget/mainwindow.cpp +++ b/examples/opengl/qopenglwidget/mainwindow.cpp @@ -133,7 +133,7 @@ void MainWindow::timerUsageChanged(bool enabled) m_timer->start(); } else { m_timer->stop(); - for (QOpenGLWidget *w : qAsConst(m_glWidgets)) + for (QOpenGLWidget *w : std::as_const(m_glWidgets)) w->update(); } } |