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
af3aef78
Commit
af3aef78
authored
Jul 10, 2010
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: simple_prefs audio: Use defined values Fixes #3351
parent
eadc598d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+2
-1
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
af3aef78
...
@@ -310,6 +310,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -310,6 +310,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#undef audioCommon
#undef audioCommon
/* Audio Options */
/* Audio Options */
ui
.
volumeValue
->
setMaximum
(
QT_VOLUME_MAX
/
QT_VOLUME_DEFAULT
*
100
);
CONFIG_GENERIC_NO_BOOL
(
"qt-startvolume"
,
IntegerRangeSlider
,
NULL
,
CONFIG_GENERIC_NO_BOOL
(
"qt-startvolume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
defaultVolume
);
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
...
@@ -729,7 +730,7 @@ SPrefsPanel::~SPrefsPanel()
...
@@ -729,7 +730,7 @@ SPrefsPanel::~SPrefsPanel()
void
SPrefsPanel
::
updateAudioVolume
(
int
volume
)
void
SPrefsPanel
::
updateAudioVolume
(
int
volume
)
{
{
qobject_cast
<
QSpinBox
*>
(
optionWidgets
[
volLW
])
qobject_cast
<
QSpinBox
*>
(
optionWidgets
[
volLW
])
->
setValue
(
volume
*
100
/
256
);
->
setValue
(
volume
*
100
/
QT_VOLUME_DEFAULT
);
}
}
...
...
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