Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
910b0583
Commit
910b0583
authored
Feb 22, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Extend seekslider to use the old native look
parent
0147fb79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+4
-3
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+2
-1
No files found.
modules/gui/qt4/util/input_slider.cpp
View file @
910b0583
...
...
@@ -55,8 +55,8 @@
#define FADEDURATION 300
#define FADEOUTDELAY 2000
SeekSlider
::
SeekSlider
(
Qt
::
Orientation
q
,
QWidget
*
_parent
)
:
QSlider
(
q
,
_parent
)
SeekSlider
::
SeekSlider
(
Qt
::
Orientation
q
,
QWidget
*
_parent
,
bool
_static
)
:
QSlider
(
q
,
_parent
)
,
b_classic
(
_static
)
{
isSliding
=
false
;
f_buffering
=
1.0
;
...
...
@@ -350,7 +350,8 @@ QSize SeekSlider::handleSize() const
void
SeekSlider
::
paintEvent
(
QPaintEvent
*
event
)
{
Q_UNUSED
(
event
);
if
(
b_classic
)
return
QSlider
::
paintEvent
(
event
);
QStyleOptionSlider
option
;
initStyleOption
(
&
option
);
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
910b0583
...
...
@@ -50,7 +50,7 @@ class SeekSlider : public QSlider
Q_OBJECT
Q_PROPERTY
(
qreal
handleOpacity
READ
handleOpacity
WRITE
setHandleOpacity
)
public:
SeekSlider
(
Qt
::
Orientation
q
,
QWidget
*
_parent
=
0
);
SeekSlider
(
Qt
::
Orientation
q
,
QWidget
*
_parent
=
0
,
bool
_classic
=
false
);
~
SeekSlider
();
void
setChapters
(
SeekPoints
*
);
...
...
@@ -82,6 +82,7 @@ private:
TimeTooltip
*
mTimeTooltip
;
float
f_buffering
;
SeekPoints
*
chapters
;
bool
b_classic
;
/* Handle's animation */
qreal
mHandleOpacity
;
...
...
Write
Preview
Markdown
is supported
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