Merge remote-tracking branch 'origin/release/21.04'

remotes/origin/work/spdx
Albert Astals Cid 5 years ago
commit 34b8c1e72e
  1. 6
      autotests/parttest.cpp

@ -2137,13 +2137,13 @@ void PartTest::testLinkWithCrop()
QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.1, width * 0.1));
// The cursor should be normal
QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor));
QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor));
// Activate "Trim Margins"
cropAction->trigger();
// The cursor should be a cross-hair
QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor));
QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::CrossCursor));
const int mouseStartY = height * 0.2;
const int mouseEndY = height * 0.8;
@ -2154,7 +2154,7 @@ void PartTest::testLinkWithCrop()
simulateMouseSelection(mouseStartX, mouseStartY, mouseEndX, mouseEndY, part.m_pageView->viewport());
// The cursor should be normal again
QCOMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor));
QTRY_COMPARE(part.m_pageView->cursor().shape(), Qt::CursorShape(Qt::OpenHandCursor));
// Click a link
const QPoint click(width * 0.2, height * 0.2);

Loading…
Cancel
Save