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
9f5bb6b6
Commit
9f5bb6b6
authored
Sep 07, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: fix indentation
parent
e2b67cfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+26
-26
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
9f5bb6b6
...
@@ -480,17 +480,17 @@ void StringListConfigControl::finish(module_config_t *p_module_config )
...
@@ -480,17 +480,17 @@ void StringListConfigControl::finish(module_config_t *p_module_config )
if
(
p_module_config
->
pf_update_list
)
if
(
p_module_config
->
pf_update_list
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
psz_string
=
strdup
(
p_module_config
->
value
.
psz
);
val
.
psz_string
=
strdup
(
p_module_config
->
value
.
psz
);
p_module_config
->
pf_update_list
(
p_this
,
p_item
->
psz_name
,
val
,
val
,
NULL
);
p_module_config
->
pf_update_list
(
p_this
,
p_item
->
psz_name
,
val
,
val
,
NULL
);
// assume in any case that dirty was set to true
// assume in any case that dirty was set to true
// because lazy programmes will use the same callback for
// because lazy programmes will use the same callback for
// this, like the one behind the refresh push button?
// this, like the one behind the refresh push button?
p_module_config
->
b_dirty
=
false
;
p_module_config
->
b_dirty
=
false
;
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
}
}
for
(
int
i_index
=
0
;
i_index
<
p_module_config
->
i_list
;
i_index
++
)
for
(
int
i_index
=
0
;
i_index
<
p_module_config
->
i_list
;
i_index
++
)
...
@@ -535,15 +535,15 @@ void setfillVLCConfigCombo( const char *configname, intf_thread_t *p_intf,
...
@@ -535,15 +535,15 @@ void setfillVLCConfigCombo( const char *configname, intf_thread_t *p_intf,
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
configname
);
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
configname
);
if
(
p_config
)
if
(
p_config
)
{
{
QVariant
def
;
QVariant
def
;
bool
string
=
(
p_config
->
i_type
&
0xF0
)
==
CONFIG_ITEM_STRING
;
bool
string
=
(
p_config
->
i_type
&
0xF0
)
==
CONFIG_ITEM_STRING
;
if
(
string
)
if
(
string
)
def
=
QVariant
(
qfu
(
p_config
->
value
.
psz
)
);
def
=
QVariant
(
qfu
(
p_config
->
value
.
psz
)
);
else
else
def
=
QVariant
(
qlonglong
(
p_config
->
value
.
i
)
);
def
=
QVariant
(
qlonglong
(
p_config
->
value
.
i
)
);
if
(
p_config
->
pf_update_list
)
if
(
p_config
->
pf_update_list
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
p_config
->
value
.
i
;
val
.
i_int
=
p_config
->
value
.
i
;
...
@@ -623,7 +623,7 @@ void ModuleConfigControl::finish( bool bycat )
...
@@ -623,7 +623,7 @@ void ModuleConfigControl::finish( bool bycat )
module_config_t
*
p_config
;
module_config_t
*
p_config
;
p_config
=
module_config_get
(
p_parser
,
&
confsize
);
p_config
=
module_config_get
(
p_parser
,
&
confsize
);
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
{
{
/* Hack: required subcategory is stored in i_min */
/* Hack: required subcategory is stored in i_min */
const
module_config_t
*
p_cfg
=
p_config
+
i
;
const
module_config_t
*
p_cfg
=
p_config
+
i
;
...
@@ -714,19 +714,19 @@ ModuleListConfigControl::~ModuleListConfigControl()
...
@@ -714,19 +714,19 @@ ModuleListConfigControl::~ModuleListConfigControl()
#define CHECKBOX_LISTS \
#define CHECKBOX_LISTS \
{ \
{ \
QCheckBox *cb = new QCheckBox( qtr( module_GetLongName( p_parser ) ) );\
QCheckBox *cb = new QCheckBox( qtr( module_GetLongName( p_parser ) ) );\
checkBoxListItem *cbl = new checkBoxListItem; \
checkBoxListItem *cbl = new checkBoxListItem; \
\
\
CONNECT( cb, stateChanged( int ), this, onUpdate() );\
CONNECT( cb, stateChanged( int ), this, onUpdate() );\
const char *help = module_get_help( p_parser ); \
const char *help = module_get_help( p_parser ); \
if( help != NULL ) \
if( help != NULL ) \
cb->setToolTip( formatTooltip( qtr( help ) ) ); \
cb->setToolTip( formatTooltip( qtr( help ) ) ); \
cbl->checkBox = cb; \
cbl->checkBox = cb; \
\
\
cbl->psz_module = strdup( module_get_object( p_parser ) ); \
cbl->psz_module = strdup( module_get_object( p_parser ) ); \
modules.append( cbl ); \
modules.append( cbl ); \
\
\
if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) ) \
if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) ) \
cbl->checkBox->setChecked( true ); \
cbl->checkBox->setChecked( true ); \
}
}
...
...
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