diff options
| author | Morten Sørvig <[email protected]> | 2024-09-09 02:41:41 +0200 |
|---|---|---|
| committer | Morten Sørvig <[email protected]> | 2024-10-22 18:53:57 +0200 |
| commit | 8f7fc8e9af6a60b0610a4b7d04f22c5b1025931a (patch) | |
| tree | 38d174793dde895883abd1f2e82598a7bd60033a /src/plugins/platforms/wasm/qwasmwindow.cpp | |
| parent | a8286206439c51735f9ef9af1ad0d8454d1cdf27 (diff) | |
wasm: remove QWasmWindow::window() and m_window
This shadows QPlatformWindow::window(), and we don't
need it anyway.
(also frees up the variable name for later use)
Task-number: QTBUG-128732
Change-Id: Ie6e355b3136b106aed4b34cbe7f883008e1b3870
Reviewed-by: Piotr Wierciński <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.cpp')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 84a5abfcfc4..fee1b21c623 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -50,7 +50,6 @@ Q_GUI_EXPORT int qt_defaultDpiX(); QWasmWindow::QWasmWindow(QWindow *w, QWasmDeadKeySupport *deadKeySupport, QWasmCompositor *compositor, QWasmBackingStore *backingStore) : QPlatformWindow(w), - m_window(w), m_compositor(compositor), m_backingStore(backingStore), m_deadKeySupport(deadKeySupport), @@ -606,7 +605,7 @@ bool QWasmWindow::processPointer(const PointerEvent &event) const auto pointInScreen = platformScreen()->mapFromLocal( dom::mapPoint(event.target(), platformScreen()->element(), event.localPoint)); QWindowSystemInterface::handleEnterEvent( - window(), m_window->mapFromGlobal(pointInScreen), pointInScreen); + window(), mapFromGlobal(pointInScreen.toPoint()), pointInScreen); break; } case EventType::PointerLeave: |
