diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-08-04 09:43:10 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-08-04 08:19:23 +0000 |
commit | 67903cec2f0d602fc6f39b9dce33a0d5f96c8beb (patch) | |
tree | 731b3257177f84417e4081a067691ffc72bd756a /tests | |
parent | 5b67f03416989029f9e023e9662abc4983b87447 (diff) | |
download | qt-creator-67903cec2f0d602fc6f39b9dce33a0d5f96c8beb.tar.gz |
Tests: Fix flamegraphview test for Qt6
Change-Id: I38271f05c615290cddb4dba5579193a68fd32370
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp b/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp index 9e21721687..f7d154cd22 100644 --- a/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp +++ b/tests/auto/tracing/flamegraphview/tst_flamegraphview.cpp @@ -112,20 +112,20 @@ void tst_FlameGraphView::testZoom() QWindow *window = widget.windowHandle(); QCOMPARE(selectedTypeId(), -1); - QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 15, - widget.height() - 15)); + QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 25, + widget.height() - 25)); QTRY_VERIFY(selectedTypeId() != -1); const int typeId1 = selectedTypeId(); - QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(15, widget.height() - 15)); + QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(25, widget.height() - 25)); QTRY_VERIFY(selectedTypeId() != typeId1); QVERIFY(selectedTypeId() != -1); QTest::mouseDClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() / 2, widget.height() / 2)); QTRY_COMPARE(selectedTypeId(), -1); - QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 15, - widget.height() - 15)); + QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(widget.width() - 25, + widget.height() - 25)); QTRY_COMPARE(selectedTypeId(), typeId1); } |