diff options
| author | Elvis Angelaccio <[email protected]> | 2020-10-14 23:53:00 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-10-15 01:22:00 +0200 |
| commit | d9956c620eb38baa6e534eb14a8d376ea07ed8c6 (patch) | |
| tree | 36744791bc3a4546f79e7b916a00f84f8e0c1d42 /src/kitemviews/private/kitemlistsmoothscroller.cpp | |
| parent | de6933617868df265f4a6534c764d8b9f7a0825c (diff) | |
Drop obsolete version check
We require Qt 5.14 now.
Diffstat (limited to 'src/kitemviews/private/kitemlistsmoothscroller.cpp')
| -rw-r--r-- | src/kitemviews/private/kitemlistsmoothscroller.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/kitemviews/private/kitemlistsmoothscroller.cpp b/src/kitemviews/private/kitemlistsmoothscroller.cpp index 6b475b5f0..1465361ed 100644 --- a/src/kitemviews/private/kitemlistsmoothscroller.cpp +++ b/src/kitemviews/private/kitemlistsmoothscroller.cpp @@ -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); |
