From f02c69547b837978a8df3da4f4d020cb5b91b8e7 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 5 May 2021 11:22:11 +0200 Subject: Remove Qt6 ifdef switches from plugins Removing dead code Change-Id: I368fcec95d230e1face18062ff19704608354654 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/wasm/qwasmeventtranslator.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/plugins/platforms/wasm/qwasmeventtranslator.cpp') diff --git a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp index 953dc06422..5c707c448b 100644 --- a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp +++ b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp @@ -330,16 +330,10 @@ QWasmEventTranslator::QWasmEventTranslator(QWasmScreen *screen) , pressedButtons(Qt::NoButton) , resizeMode(QWasmWindow::ResizeNone) { -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) touchDevice = new QPointingDevice("touchscreen", 1, QInputDevice::DeviceType::TouchScreen, QPointingDevice::PointerType::Finger, QPointingDevice::Capability::Position | QPointingDevice::Capability::Area | QPointingDevice::Capability::NormalizedPosition, 10, 0); -#else - touchDevice = new QPointingDevice; - touchDevice->setType(QInputDevice::DeviceType::TouchScreen); - touchDevice->setCapabilities(QPointingDevice::Capability::Position | QPointingDevice::Capability::Area | QPointingDevice::Capability::NormalizedPosition); -#endif QWindowSystemInterface::registerInputDevice(touchDevice); initEventHandlers(); -- cgit v1.2.3