Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6cd33859
Commit
6cd33859
authored
Sep 24, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: manage the volume with the core
Close #3351
parent
e578075a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+2
-3
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+1
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+5
-16
No files found.
modules/gui/qt4/components/controller_widget.cpp
View file @
6cd33859
...
...
@@ -89,7 +89,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
{
volumeSlider
=
new
SoundSlider
(
this
,
config_GetInt
(
p_intf
,
"volume-step"
),
var_InheritBool
(
p_intf
,
"qt-volume-complete"
)
,
false
,
var_InheritString
(
p_intf
,
"qt-slider-colours"
)
);
}
else
...
...
@@ -98,8 +98,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
volumeSlider
->
setAttribute
(
Qt
::
WA_MacSmallSize
);
volumeSlider
->
setOrientation
(
b_special
?
Qt
::
Vertical
:
Qt
::
Horizontal
);
volumeSlider
->
setMaximum
(
var_InheritBool
(
p_intf
,
"qt-volume-complete"
)
?
400
:
200
);
volumeSlider
->
setMaximum
(
200
);
}
volumeSlider
->
setFocusPolicy
(
Qt
::
NoFocus
);
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
6cd33859
...
...
@@ -315,7 +315,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/* Audio Options */
ui
.
volumeValue
->
setMaximum
(
QT_VOLUME_MAX
/
QT_VOLUME_DEFAULT
*
100
);
CONFIG_GENERIC_NO_BOOL
(
"
qt-start
volume"
,
IntegerRangeSlider
,
NULL
,
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
this
,
updateAudioVolume
(
int
)
);
...
...
modules/gui/qt4/qt4.cpp
View file @
6cd33859
...
...
@@ -124,14 +124,7 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
"two weeks." )
#define UPDATER_DAYS_TEXT N_("Number of days between two update checks")
#define COMPLETEVOL_TEXT N_( "Allow the volume to be set to 400%" )
#define COMPLETEVOL_LONGTEXT N_( "Allow the volume to have range from 0% to " \
"400%, instead of 0% to 200%. This option " \
"can distort the audio, since it uses " \
"software amplification." )
#define SAVEVOL_TEXT N_( "Automatically save the volume on exit" )
#define STARTVOL_TEXT N_( "Default start volume" )
#define PRIVACY_TEXT N_( "Ask for network policy at start" )
...
...
@@ -236,13 +229,8 @@ vlc_module_begin ()
UPDATER_DAYS_TEXT
,
false
)
#endif
add_bool
(
"qt-volume-complete"
,
false
,
COMPLETEVOL_TEXT
,
COMPLETEVOL_LONGTEXT
,
true
)
add_bool
(
"qt-autosave-volume"
,
false
,
SAVEVOL_TEXT
,
SAVEVOL_TEXT
,
true
)
add_integer_with_range
(
"qt-startvolume"
,
QT_VOLUME_DEFAULT
,
0
,
QT_VOLUME_MAX
,
STARTVOL_TEXT
,
STARTVOL_TEXT
,
true
)
#ifdef WIN32
add_bool
(
"qt-disable-volume-keys"
/* name */
,
true
/* default value */
,
...
...
@@ -278,13 +266,14 @@ vlc_module_begin ()
add_bool
(
"qt-bgcone-expands"
,
false
,
QT_BGCONE_EXPANDS_TEXT
,
QT_BGCONE_EXPANDS_LONGTEXT
,
true
)
add_bool
(
"qt-icon-change"
,
true
,
ICONCHANGE_TEXT
,
ICONCHANGE_LONGTEXT
,
true
)
add_obsolete_bool
(
"qt-blingbling"
)
/* Suppressed since 1.0.0 */
add_obsolete_bool
(
"qt-blingbling"
)
/* Suppressed since 1.0.0 */
add_obsolete_integer
(
"qt-display-mode"
)
/* Suppressed since 1.1.0 */
add_
bool
(
"qt-icon-change"
,
true
,
ICONCHANGE_TEXT
,
ICONCHANGE_LONGTEXT
,
true
)
add_obsolete_
bool
(
"qt-adv-options"
)
/* Since 1.2.0 */
add_
obsolete_bool
(
"qt-adv-options"
)
/* Since 1.2.0 */
add_obsolete_bool
(
"qt-volume-complete"
)
/* Since 1.2.0 */
add_obsolete_
integer
(
"qt-startvolume"
)
/* Since 1.2.0 */
cannot_unload_broken_library
()
...
...
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