Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
327779e6
Commit
327779e6
authored
Sep 05, 2006
by
zorglub
Browse files
Convert items in the preferences tree to locale
parent
315069b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/preferences.cpp
View file @
327779e6
...
...
@@ -104,11 +104,11 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
case
CONFIG_CATEGORY
:
if
(
p_item
->
i_value
==
-
1
)
break
;
data
=
new
PrefsItemData
();
data
->
name
=
QString
(
config_CategoryNameGet
(
p_item
->
i_value
)
);
data
->
name
=
QString
(
qfu
(
config_CategoryNameGet
(
p_item
->
i_value
)
)
);
psz_help
=
config_CategoryHelpGet
(
p_item
->
i_value
);
if
(
psz_help
)
data
->
help
=
QString
(
psz_help
);
data
->
help
=
QString
(
qfu
(
psz_help
)
);
else
data
->
help
.
clear
();
data
->
i_type
=
TYPE_CATEGORY
;
...
...
@@ -148,11 +148,11 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
// Data still contains the correct thing
data
->
i_type
=
TYPE_CATSUBCAT
;
data
->
i_subcat_id
=
p_item
->
i_value
;
data
->
name
=
QString
(
config_CategoryNameGet
(
p_item
->
i_value
)
);
data
->
name
=
QString
(
qfu
(
config_CategoryNameGet
(
p_item
->
i_value
)
)
);
psz_help
=
config_CategoryHelpGet
(
p_item
->
i_value
);
if
(
psz_help
)
data
->
help
=
QString
(
psz_help
);
data
->
help
=
QString
(
qfu
(
psz_help
)
);
else
data
->
help
.
clear
();
current_item
->
setData
(
0
,
Qt
::
UserRole
,
...
...
@@ -160,10 +160,11 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
continue
;
}
data
=
new
PrefsItemData
();
data
->
name
=
QString
(
config_CategoryNameGet
(
p_item
->
i_value
));
data
->
name
=
QString
(
qfu
(
config_CategoryNameGet
(
p_item
->
i_value
))
);
psz_help
=
config_CategoryHelpGet
(
p_item
->
i_value
);
if
(
psz_help
)
data
->
help
=
QString
(
psz_help
);
data
->
help
=
QString
(
qfu
(
psz_help
)
);
else
data
->
help
.
clear
();
data
->
i_type
=
TYPE_SUBCATEGORY
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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