diff options
Diffstat (limited to 'tests/manual/wasm/rasterwindow')
-rw-r--r-- | tests/manual/wasm/rasterwindow/CMakeLists.txt | 5 | ||||
-rw-r--r-- | tests/manual/wasm/rasterwindow/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/wasm/rasterwindow/rasterwindow.cpp | 3 | ||||
-rw-r--r-- | tests/manual/wasm/rasterwindow/rasterwindow.h | 2 |
4 files changed, 8 insertions, 4 deletions
diff --git a/tests/manual/wasm/rasterwindow/CMakeLists.txt b/tests/manual/wasm/rasterwindow/CMakeLists.txt index cd3a2eef3d..ed5b7ecd18 100644 --- a/tests/manual/wasm/rasterwindow/CMakeLists.txt +++ b/tests/manual/wasm/rasterwindow/CMakeLists.txt @@ -1,8 +1,11 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + qt_internal_add_manual_test(rasterwindow GUI SOURCES main.cpp rasterwindow.cpp - PUBLIC_LIBRARIES + LIBRARIES Qt::Core Qt::Gui ) diff --git a/tests/manual/wasm/rasterwindow/main.cpp b/tests/manual/wasm/rasterwindow/main.cpp index 38921c8c30..576b73112b 100644 --- a/tests/manual/wasm/rasterwindow/main.cpp +++ b/tests/manual/wasm/rasterwindow/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QtGui> #include "rasterwindow.h" diff --git a/tests/manual/wasm/rasterwindow/rasterwindow.cpp b/tests/manual/wasm/rasterwindow/rasterwindow.cpp index bc56887354..8fd036c274 100644 --- a/tests/manual/wasm/rasterwindow/rasterwindow.cpp +++ b/tests/manual/wasm/rasterwindow/rasterwindow.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "rasterwindow.h" RasterWindow::RasterWindow() @@ -175,6 +175,7 @@ void RasterWindow::wheelEvent(QWheelEvent * ev) qDebug() << __PRETTY_FUNCTION__; QRasterWindow::wheelEvent(ev); incrementEventCount(); + m_offset += ev->pixelDelta(); } void RasterWindow::incrementEventCount() diff --git a/tests/manual/wasm/rasterwindow/rasterwindow.h b/tests/manual/wasm/rasterwindow/rasterwindow.h index b01efb9ddb..e488420440 100644 --- a/tests/manual/wasm/rasterwindow/rasterwindow.h +++ b/tests/manual/wasm/rasterwindow/rasterwindow.h @@ -1,5 +1,5 @@ // Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef RASTERWINDOW_H #define RASTERWINDOW_H |