Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
d9956c62
Commit
d9956c62
authored
Oct 14, 2020
by
Elvis Angelaccio
Browse files
Drop obsolete version check
We require Qt 5.14 now.
parent
de693361
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/private/kitemlistsmoothscroller.cpp
View file @
d9956c62
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment