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
38d165dd
Commit
38d165dd
authored
Sep 08, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves volume icon update in the timer
Sets default icon to high
parent
ada85db2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+7
-6
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-2
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
38d165dd
...
...
@@ -6,6 +6,7 @@
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Rafaël Carré <funman@videolanorg>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -469,7 +470,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
VolumeClickHandler
*
h
=
new
VolumeClickHandler
(
p_intf
,
this
);
volMuteLabel
=
new
QLabel
;
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-
low
.png"
)
);
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-
high
.png"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
volMuteLabel
->
installEventFilter
(
h
);
...
...
@@ -560,11 +561,6 @@ void ControlsWidget::updateVolume( int i_sliderVolume )
int
i_res
=
i_sliderVolume
*
AOUT_VOLUME_MAX
/
(
2
*
volumeSlider
->
maximum
()
);
aout_VolumeSet
(
p_intf
,
i_res
);
if
(
i_sliderVolume
==
0
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-muted.png"
)
);
else
if
(
i_sliderVolume
<
volumeSlider
->
maximum
()
/
2
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
else
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-high.png"
)
);
}
}
...
...
@@ -582,6 +578,11 @@ void ControlsWidget::updateOnTimer()
volumeSlider
->
setValue
(
i_volume
);
b_my_volume
=
false
;
}
if
(
i_volume
==
0
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-muted.png"
)
);
else
if
(
i_volume
<
volumeSlider
->
maximum
()
/
2
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
else
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-high.png"
)
);
/* Activate the interface buttons according to the presence of the input */
enableInput
(
THEMIM
->
getIM
()
->
hasInput
()
);
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
38d165dd
...
...
@@ -6,6 +6,7 @@
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Rafaël Carré <funman@videolanorg>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -184,9 +185,7 @@ public:
{
if
(
e
->
type
()
==
QEvent
::
MouseButtonPress
)
{
/* Mute it */
aout_VolumeMute
(
p_intf
,
NULL
);
m
->
updateVolume
(
0
);
return
true
;
}
return
false
;
...
...
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