diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-10-20 16:27:59 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-10-23 00:59:53 +0000 |
commit | 4242f57900b0ed24155dd19215671845054d16d4 (patch) | |
tree | 54e866b831164c98dd3b328098543e77dd9d8d6e | |
parent | c827b5119555f65fa24ef277b1d68b7397457be1 (diff) | |
download | qtbase-4242f57900b0ed24155dd19215671845054d16d4.tar.gz |
Fix bool comparison in tst_qopenglwidget.cpp
This commit amends 1ea73bc29b7542141bfcfa138cc194404c283bd5
Change-Id: I02000f86ff030ad369ccef1d4488ad22558eb974
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit 55449a65285b704d53a0096689f156578d9cb0e2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp b/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp index 9d94aa5aca..4ebc941f8b 100644 --- a/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp +++ b/tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp @@ -681,7 +681,7 @@ void tst_QOpenGLWidget::stackWidgetOpaqueChildIsVisible() // Switch to the QOpenGLWidget. stack.setCurrentIndex(1); - QTRY_COMPARE(clearWidget->m_paintCalled, true); + QTRY_VERIFY(clearWidget->m_paintCalled); // Resize the tested region to be half size in the middle, because some OSes make the widget // have rounded corners (e.g. OSX), and the grabbed window pixmap will not coincide perfectly @@ -789,10 +789,10 @@ void tst_QOpenGLWidget::paintWhileHidden() // on-screen at the point when update() is called. w->setVisible(false); - w->m_paintCalled = 0; + w->m_paintCalled = false; w->update(); w->setVisible(true); - QTRY_VERIFY(w->m_paintCalled > 0); + QTRY_VERIFY(w->m_paintCalled); } void tst_QOpenGLWidget::widgetWindowColorFormat_data() |