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
e960f0f8
Commit
e960f0f8
authored
Aug 15, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use config_GetIntChoices() for integer config items
parent
5f8ed84c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+10
-12
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
e960f0f8
...
...
@@ -961,21 +961,19 @@ void IntegerListConfigControl::finish(module_config_t *p_module_config )
if
(
!
p_module_config
)
return
;
if
(
p_module_config
->
pf_update_list
)
{
vlc_value_t
val
;
val
.
i_int
=
p_module_config
->
value
.
i
;
p_module_config
->
pf_update_list
(
p_this
,
p_item
->
psz_name
,
val
,
val
,
NULL
);
}
for
(
int
i_index
=
0
;
i_index
<
p_module_config
->
i_list
;
i_index
++
)
int64_t
*
values
;
char
**
texts
;
ssize_t
count
=
config_GetIntChoices
(
p_this
,
p_module_config
->
psz_name
,
&
values
,
&
texts
);
for
(
ssize_t
i
=
0
;
i
<
count
;
i
++
)
{
combo
->
addItem
(
qtr
(
p_module_config
->
ppsz_list_text
[
i_index
]
),
QVariant
(
p_module_config
->
pi_list
[
i_index
]
)
);
if
(
p_module_config
->
value
.
i
==
p_module_config
->
pi_list
[
i_index
]
)
combo
->
addItem
(
qtr
(
texts
[
i
]),
qlonglong
(
values
[
i
])
);
if
(
p_module_config
->
value
.
i
==
values
[
i
]
)
combo
->
setCurrentIndex
(
combo
->
count
()
-
1
);
free
(
texts
[
i
]
);
}
free
(
texts
);
free
(
values
);
if
(
p_item
->
psz_longtext
)
{
QString
tipText
=
qtr
(
p_item
->
psz_longtext
);
...
...
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