summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/gui/kernel/qwindow/tst_qwindow.cpp')
-rw-r--r--tests/auto/gui/kernel/qwindow/tst_qwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
index 34de756ab5..1db7e9a9c7 100644
--- a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
+++ b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp
@@ -1717,7 +1717,7 @@ public:
eventType = ev->type();
eventGlobal = ev->globalPosF();
eventLocal = ev->posF();
- eventDevice = ev->device();
+ eventDevice = ev->deviceType();
}
QEvent::Type eventType = QEvent::None;
@@ -1730,7 +1730,7 @@ public:
|| ev->type() == QEvent::TabletLeaveProximity) {
eventType = ev->type();
QTabletEvent *te = static_cast<QTabletEvent *>(ev);
- eventDevice = te->device();
+ eventDevice = te->deviceType();
}
return QWindow::eventFilter(obj, ev);
}