From 285c14dd4e2127a34c5bd936e7563be3e62baa90 Mon Sep 17 00:00:00 2001 From: Manuel Alcaraz Zambrano Date: Wed, 17 Jul 2024 17:56:25 +0200 Subject: Remove dead code --- src/kitemviews/private/kitemlistsmoothscroller.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/kitemviews/private') diff --git a/src/kitemviews/private/kitemlistsmoothscroller.cpp b/src/kitemviews/private/kitemlistsmoothscroller.cpp index 1fc452542..fd26d198f 100644 --- a/src/kitemviews/private/kitemlistsmoothscroller.cpp +++ b/src/kitemviews/private/kitemlistsmoothscroller.cpp @@ -207,15 +207,9 @@ void KItemListSmoothScroller::handleWheelEvent(QWheelEvent *event) m_smoothScrolling = true; -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QWheelEvent *copy = event->clone(); QApplication::sendEvent(m_scrollBar, copy); event->setAccepted(copy->isAccepted()); -#else - QWheelEvent copy = *event; - QApplication::sendEvent(m_scrollBar, ©); - event->setAccepted(copy.isAccepted()); -#endif m_smoothScrolling = previous; } -- cgit v1.3