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
8a99e94b
Commit
8a99e94b
authored
Sep 08, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Volume: if volume > 50% of the sliderBar, then show the highVolume Label.
parent
b399b131
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+8
-5
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
8a99e94b
...
...
@@ -462,18 +462,18 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, bool b_advControls ) :
prefs
()
);
setupSmallButton
(
prefsButton
);
controlLayout
->
addWidget
(
prefsButton
,
3
,
13
);
controlLayout
->
setColumnStretch
(
14
,
5
);
/* Volume */
VolumeClickHandler
*
h
=
new
VolumeClickHandler
(
p_intf
,
this
);
QLabel
*
volMuteLabel
=
new
QLabel
;
volMuteLabel
=
new
QLabel
;
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
volMuteLabel
->
installEventFilter
(
h
);
/** TODO:
/** TODO:
* Change this slider to use a nice Amarok-like one
* Add a Context menu to change to the most useful %
* **/
...
...
@@ -553,13 +553,16 @@ void ControlsWidget::setNavigation( int navigation )
}
static
bool
b_my_volume
;
void
ControlsWidget
::
updateVolume
(
int
sliderVolume
)
void
ControlsWidget
::
updateVolume
(
int
i_
sliderVolume
)
{
if
(
!
b_my_volume
)
{
int
i_res
=
sliderVolume
*
AOUT_VOLUME_MAX
/
int
i_res
=
i_
sliderVolume
*
AOUT_VOLUME_MAX
/
(
2
*
volumeSlider
->
maximum
()
);
aout_VolumeSet
(
p_intf
,
i_res
);
if
(
i_sliderVolume
<
volumeSlider
->
maximum
()
/
2
)
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
else
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-high.png"
)
);
}
}
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
8a99e94b
...
...
@@ -155,6 +155,7 @@ private:
QPushButton
*
playButton
,
*
fullscreenButton
;
QPushButton
*
slowerButton
,
*
fasterButton
;
AdvControlsWidget
*
advControls
;
QLabel
*
volMuteLabel
;
bool
b_advancedVisible
;
private
slots
:
...
...
modules/gui/qt4/main_interface.cpp
View file @
8a99e94b
...
...
@@ -650,7 +650,7 @@ void MainInterface::toggleAdvanced()
int
MainInterface
::
getControlsVisibilityStatus
()
{
return
(
(
controls
->
isVisible
()
?
0x2
:
0x0
)
return
(
(
controls
->
isVisible
()
?
0x2
:
0x0
)
+
controls
->
b_advancedVisible
);
}
...
...
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