diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-04 03:05:04 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-04 03:05:04 +0200 |
commit | 5de68d8f9ac7878088d6bb70380085284a111d1c (patch) | |
tree | 25ef08b3ca74bd749f7b96133ed5eac205742cb3 /tests | |
parent | 2b603aa2808d1ffab401dd67b80d2faad567e745 (diff) | |
parent | 8301071b25f50a119822519f08af9595b95430fc (diff) |
Merge remote-tracking branch 'origin/5.13' into dev
Change-Id: I687ae31ea78ae5a39066e5ea47ec1d661642a7cb
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/cursor/data/scrollbar.qml | 4 | ||||
-rw-r--r-- | tests/auto/cursor/tst_cursor.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/cursor/data/scrollbar.qml b/tests/auto/cursor/data/scrollbar.qml index 41fda945..50b785c6 100644 --- a/tests/auto/cursor/data/scrollbar.qml +++ b/tests/auto/cursor/data/scrollbar.qml @@ -65,6 +65,10 @@ ApplicationWindow { } ScrollBar.vertical: ScrollBar { id: scrollBar + // Need to explicitly set this to account for platforms like Android, + // where the UiEffects style hint does not include HoverEffect, and + // hence QQuickControlPrivate::calcHoverEnabled() would otherwise return false. + hoverEnabled: true } } } diff --git a/tests/auto/cursor/tst_cursor.cpp b/tests/auto/cursor/tst_cursor.cpp index d59e7091..2491a972 100644 --- a/tests/auto/cursor/tst_cursor.cpp +++ b/tests/auto/cursor/tst_cursor.cpp @@ -202,10 +202,6 @@ void tst_cursor::scrollBar() const QPoint scrollBarPos(window->width() - scrollBar->width() / 2, window->height() / 2); QTest::mouseMove(window, scrollBarPos); - if ((QGuiApplication::platformName() == QLatin1String("offscreen")) - || (QGuiApplication::platformName() == QLatin1String("minimal"))) - QEXPECT_FAIL("", "Active status behaves differently in offscreen/minimal platforms", Continue); - QVERIFY(scrollBar->isActive()); QCOMPARE(window->cursor().shape(), scrollBar->cursor().shape()); QCOMPARE(scrollBar->cursor().shape(), Qt::CursorShape::ArrowCursor); |