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
02e74e70
Commit
02e74e70
authored
Jun 16, 2008
by
Jean-Philippe Andre
Committed by
Jean-Baptiste Kempf
Jun 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt menus: s/Q_FOREACH/foreach
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
e825ac86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+5
-5
No files found.
modules/gui/qt4/menus.cpp
View file @
02e74e70
...
@@ -106,7 +106,7 @@ void EnableDPStaticEntries( QMenu *menu, bool enable = true )
...
@@ -106,7 +106,7 @@ void EnableDPStaticEntries( QMenu *menu, bool enable = true )
return
;
return
;
QAction
*
action
;
QAction
*
action
;
Q_FOREACH
(
action
,
menu
->
actions
()
)
foreach
(
action
,
menu
->
actions
()
)
{
{
if
(
action
->
data
().
toString
()
==
"_static_"
)
if
(
action
->
data
().
toString
()
==
"_static_"
)
action
->
setEnabled
(
enable
);
action
->
setEnabled
(
enable
);
...
@@ -122,7 +122,7 @@ int DeleteNonStaticEntries( QMenu *menu )
...
@@ -122,7 +122,7 @@ int DeleteNonStaticEntries( QMenu *menu )
QAction
*
action
;
QAction
*
action
;
if
(
!
menu
)
if
(
!
menu
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
Q_FOREACH
(
action
,
menu
->
actions
()
)
foreach
(
action
,
menu
->
actions
()
)
{
{
if
(
action
->
data
().
toString
()
!=
"_static_"
)
if
(
action
->
data
().
toString
()
!=
"_static_"
)
delete
action
;
delete
action
;
...
@@ -204,7 +204,7 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
...
@@ -204,7 +204,7 @@ static int AudioAutoMenuBuilder( vlc_object_t *p_object,
static
QAction
*
FindActionWithVar
(
QMenu
*
menu
,
const
char
*
psz_var
)
static
QAction
*
FindActionWithVar
(
QMenu
*
menu
,
const
char
*
psz_var
)
{
{
QAction
*
action
;
QAction
*
action
;
Q_FOREACH
(
action
,
menu
->
actions
()
)
foreach
(
action
,
menu
->
actions
()
)
{
{
if
(
action
->
data
().
toString
()
==
psz_var
)
if
(
action
->
data
().
toString
()
==
psz_var
)
return
action
;
return
action
;
...
@@ -215,7 +215,7 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
...
@@ -215,7 +215,7 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
static
QAction
*
FindActionWithText
(
QMenu
*
menu
,
QString
&
text
)
static
QAction
*
FindActionWithText
(
QMenu
*
menu
,
QString
&
text
)
{
{
QAction
*
action
;
QAction
*
action
;
Q_FOREACH
(
action
,
menu
->
actions
()
)
foreach
(
action
,
menu
->
actions
()
)
{
{
if
(
action
->
text
()
==
text
)
if
(
action
->
text
()
==
text
)
return
action
;
return
action
;
...
@@ -854,7 +854,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
...
@@ -854,7 +854,7 @@ QMenu * QVLCMenu::Populate( intf_thread_t *p_intf,
/* Disable all non static entries */
/* Disable all non static entries */
QAction
*
p_action
;
QAction
*
p_action
;
Q_FOREACH
(
p_action
,
menu
->
actions
()
)
foreach
(
p_action
,
menu
->
actions
()
)
{
{
if
(
p_action
->
data
().
toString
()
!=
"_static_"
)
if
(
p_action
->
data
().
toString
()
!=
"_static_"
)
p_action
->
setEnabled
(
false
);
p_action
->
setEnabled
(
false
);
...
...
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