]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Drop obsolete version check
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 21:53:00 +0000 (23:53 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 23:22:00 +0000 (01:22 +0200)
We require Qt 5.14 now.

src/kitemviews/private/kitemlistsmoothscroller.cpp

index 6b475b5f03e425a80640021ed30b871f8907f4e8..1465361ed38846bd0f54498a6e87d620c10ddb20 100644 (file)
@@ -21,13 +21,8 @@ KItemListSmoothScroller::KItemListSmoothScroller(QScrollBar* scrollBar,
     m_animation(nullptr)
 {
     m_animation = new QPropertyAnimation(this);
-#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
     const int animationDuration = m_scrollBar->style()->styleHint(QStyle::SH_Widget_Animation_Duration, nullptr, m_scrollBar);
     const bool animationEnabled = (animationDuration > 0);
- #else
-    const int animationDuration = 100;
-    const bool animationEnabled = m_scrollBar->style()->styleHint(QStyle::SH_Widget_Animate, nullptr, m_scrollBar);
-#endif
     m_animation->setDuration(animationEnabled ? animationDuration : 1);
     connect(m_animation, &QPropertyAnimation::stateChanged,
             this, &KItemListSmoothScroller::slotAnimationStateChanged);