Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
eadc598d
Commit
eadc598d
authored
Jul 09, 2010
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt forced default value is different than libvlc's saved
parent
8c213790
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
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
+3
-0
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+4
-0
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
eadc598d
...
...
@@ -310,7 +310,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#undef audioCommon
/* Audio Options */
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
CONFIG_GENERIC_NO_BOOL
(
"
qt-start
volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
this
,
updateAudioVolume
(
int
)
);
...
...
modules/gui/qt4/qt4.cpp
View file @
eadc598d
...
...
@@ -128,6 +128,7 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
"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" )
...
...
@@ -200,6 +201,8 @@ vlc_module_begin ()
COMPLETEVOL_LONGTEXT
,
true
)
add_bool
(
"qt-autosave-volume"
,
false
,
NULL
,
SAVEVOL_TEXT
,
SAVEVOL_TEXT
,
true
)
add_integer_with_range
(
"qt-startvolume"
,
QT_VOLUME_DEFAULT
,
0
,
QT_VOLUME_MAX
,
NULL
,
STARTVOL_TEXT
,
STARTVOL_TEXT
,
true
)
add_bool
(
"qt-embedded-open"
,
false
,
NULL
,
QT_NATIVEOPEN_TEXT
,
QT_NATIVEOPEN_TEXT
,
false
)
...
...
modules/gui/qt4/qt4.hpp
View file @
eadc598d
...
...
@@ -32,6 +32,7 @@
#include <vlc_common.h>
/* VLC_COMMON_MEMBERS for vlc_interface.h */
#include <vlc_interface.h>
/* intf_thread_t */
#include <vlc_playlist.h>
/* playlist_t */
#include <vlc_aout.h>
/* AOUT_VOLUME_ */
#define QT_NO_CAST_TO_ASCII
#include <QString>
...
...
@@ -117,6 +118,9 @@ struct intf_sys_t
#define getSettings() p_intf->p_sys->mainSettings
#define QT_VOLUME_DEFAULT AOUT_VOLUME_DEFAULT
#define QT_VOLUME_MAX (AOUT_VOLUME_DEFAULT * 2)
static
inline
QString
QVLCUserDir
(
vlc_userdir_t
type
)
{
char
*
dir
=
config_GetUserDir
(
type
);
...
...
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