Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b50c1cab
Commit
b50c1cab
authored
Aug 18, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small Sound Slider issue fixed.
parent
d03eb707
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
modules/gui/qt4/pixmaps/toolbar/volume-slider-inside.png
modules/gui/qt4/pixmaps/toolbar/volume-slider-inside.png
+0
-0
modules/gui/qt4/pixmaps/toolbar/volume-slider-outside.png
modules/gui/qt4/pixmaps/toolbar/volume-slider-outside.png
+0
-0
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+3
-5
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+1
-1
No files found.
modules/gui/qt4/pixmaps/toolbar/volume-slider-inside.png
View replaced file @
d03eb707
View file @
b50c1cab
273 Bytes
|
W:
|
H:
276 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
modules/gui/qt4/pixmaps/toolbar/volume-slider-outside.png
View replaced file @
d03eb707
View file @
b50c1cab
988 Bytes
|
W:
|
H:
757 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
modules/gui/qt4/util/input_slider.cpp
View file @
b50c1cab
...
...
@@ -215,7 +215,7 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event )
}
else
{
int
i
=
(
event
->
x
()
-
paddingL
)
*
maximum
(
)
/
WLENGTH
;
int
i
=
(
(
event
->
x
()
-
paddingL
)
*
maximum
()
+
40
)
/
WLENGTH
;
i
=
__MIN
(
__MAX
(
0
,
i
),
maximum
()
);
setToolTip
(
QString
(
"%1 \%"
).
arg
(
i
)
);
}
...
...
@@ -223,15 +223,13 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event )
void
SoundSlider
::
changeValue
(
int
x
)
{
setValue
(
x
*
maximum
(
)
/
WLENGTH
);
setValue
(
(
x
*
maximum
()
+
40
)
/
WLENGTH
);
}
void
SoundSlider
::
paintEvent
(
QPaintEvent
*
e
)
{
QPainter
painter
(
this
);
const
int
offset
=
int
(
double
(
WLENGTH
*
value
()
)
/
double
(
maximum
()
)
)
+
paddingL
;
const
int
offset
=
int
(
(
WLENGTH
*
value
()
+
100
)
/
maximum
()
)
+
paddingL
;
const
QRectF
boundsG
(
0
,
0
,
offset
,
pixGradient
.
height
()
);
painter
.
drawPixmap
(
boundsG
,
pixGradient
,
boundsG
);
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
b50c1cab
...
...
@@ -65,7 +65,7 @@ public:
virtual
~
SoundSlider
()
{};
protected:
const
static
int
paddingL
=
4
;
const
static
int
paddingL
=
3
;
const
static
int
paddingR
=
2
;
virtual
void
paintEvent
(
QPaintEvent
*
);
virtual
void
wheelEvent
(
QWheelEvent
*
event
);
...
...
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