diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-05-25 12:26:16 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-05-26 03:14:52 +0200 |
commit | d4cff8c537a6bfdce11cfc44703907d3ecafec93 (patch) | |
tree | d133e71b541cfbf2f8a8d0544b1d0955a5d561e8 /tests/auto/widgets | |
parent | 55765898fe7eb467b5675709ee765c24d71df7d6 (diff) |
Fix wrong variable initialization in tst_QScrollBar::task_209492
Change-Id: Icf1f6da46caa7fb7f3bd308eaaf4e037af814d17
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r-- | tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp b/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp index a08e51cafd..471a9bd3e4 100644 --- a/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp +++ b/tests/auto/widgets/widgets/qscrollbar/tst_qscrollbar.cpp @@ -119,7 +119,7 @@ void tst_QScrollBar::task_209492() // Simulate a mouse click on the "scroll down button". const QPoint pressPoint(verticalScrollBar->width() / 2, verticalScrollBar->height() - 10); - const QPoint globalPressPoint = verticalScrollBar->mapToGlobal(globalPressPoint); + const QPoint globalPressPoint = verticalScrollBar->mapToGlobal(pressPoint); QMouseEvent mousePressEvent(QEvent::MouseButtonPress, pressPoint, globalPressPoint, Qt::LeftButton, Qt::LeftButton, {}); QApplication::sendEvent(verticalScrollBar, &mousePressEvent); |