Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a1d12e8c
Commit
a1d12e8c
authored
Aug 12, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small sound slider size issue, Not perfect yet, but soon to be.
parent
9b868a2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+1
-1
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+2
-2
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
a1d12e8c
...
...
@@ -653,7 +653,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
volumeSlider
->
setOrientation
(
Qt
::
Horizontal
);
}
volumeSlider
->
setMaximumSize
(
QSize
(
200
,
40
)
);
volumeSlider
->
setMinimumSize
(
QSize
(
106
,
30
)
);
volumeSlider
->
setMinimumSize
(
QSize
(
85
,
30
)
);
volumeSlider
->
setFocusPolicy
(
Qt
::
NoFocus
);
/* Set the volume from the config */
...
...
modules/gui/qt4/util/input_slider.cpp
View file @
a1d12e8c
...
...
@@ -135,7 +135,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
pixGradient
=
QPixmap
(
mask
.
size
()
);
/* Gradient building from the preferences */
QLinearGradient
gradient
(
paddingL
,
3
,
WLENGTH
+
paddingL
,
3
);
QLinearGradient
gradient
(
paddingL
,
2
,
WLENGTH
+
paddingL
,
2
);
QStringList
colorList
=
qfu
(
psz_colors
).
split
(
";"
);
free
(
psz_colors
);
...
...
@@ -199,7 +199,7 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event )
if
(
b_sliding
)
{
QRect
rect
(
paddingL
-
15
,
-
1
,
WLENGTH
,
WHEIGHT
+
5
);
WLENGTH
+
15
*
2
,
WHEIGHT
+
5
);
if
(
!
rect
.
contains
(
event
->
pos
()
)
)
{
/* We are outside */
if
(
!
b_outside
)
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
a1d12e8c
...
...
@@ -65,7 +65,7 @@ public:
virtual
~
SoundSlider
()
{};
protected:
const
static
int
paddingL
=
3
;
const
static
int
paddingL
=
4
;
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