deviceType doesn't exist in Qt5 apparently

This commit is contained in:
Nadia Holmquist Pedersen 2024-07-15 14:04:40 +02:00
parent 6d2ad2a3f0
commit 71f4d7b222
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ void ScreenPanel::tabletEvent(QTabletEvent* event)
void ScreenPanel::touchEvent(QTouchEvent* event) void ScreenPanel::touchEvent(QTouchEvent* event)
{ {
if (event->deviceType() == QInputDevice::DeviceType::TouchPad) if (event->device()->type() == QInputDevice::DeviceType::TouchPad)
return; return;
event->accept(); event->accept();