deviceType doesn't exist in Qt5 apparently
This commit is contained in:
parent
6d2ad2a3f0
commit
71f4d7b222
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue