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
1cab82c2
Commit
1cab82c2
authored
Mar 11, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, menus: remove unneeded function
parent
b5da28d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
35 deletions
+2
-35
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+2
-34
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+0
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
1cab82c2
...
@@ -34,10 +34,9 @@
...
@@ -34,10 +34,9 @@
# include "config.h"
# include "config.h"
#endif
#endif
#include <vlc_common.h>
#include <vlc_intf_strings.h>
#include <vlc_intf_strings.h>
#include <vlc_services_discovery.h>
/*vlc_sd_GetNames*/
#include <vlc_vout.h>
/* vout_thread_t */
#include <vlc_aout.h>
#include <vlc_vout.h>
#include "menus.hpp"
#include "menus.hpp"
...
@@ -694,37 +693,6 @@ QMenu *QVLCMenu::RebuildNavigMenu( intf_thread_t *p_intf, QMenu *menu )
...
@@ -694,37 +693,6 @@ QMenu *QVLCMenu::RebuildNavigMenu( intf_thread_t *p_intf, QMenu *menu )
return
Populate
(
p_intf
,
menu
,
varnames
,
objects
);
return
Populate
(
p_intf
,
menu
,
varnames
,
objects
);
}
}
/**
* Service Discovery SubMenu
**/
QMenu
*
QVLCMenu
::
SDMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
QMenu
*
menu
=
new
QMenu
(
parent
);
menu
->
setTitle
(
qtr
(
I_PL_SD
)
);
char
**
ppsz_longnames
;
char
**
ppsz_names
=
vlc_sd_GetNames
(
p_intf
,
&
ppsz_longnames
,
NULL
);
if
(
!
ppsz_names
)
return
menu
;
char
**
ppsz_name
=
ppsz_names
,
**
ppsz_longname
=
ppsz_longnames
;
for
(
;
*
ppsz_name
;
ppsz_name
++
,
ppsz_longname
++
)
{
if
(
!
strcmp
(
*
ppsz_name
,
"podcast"
)
)
{
QAction
*
b
=
new
QAction
(
qtr
(
"Configure podcasts..."
),
menu
);
//b->setEnabled( a->isChecked() );
menu
->
addAction
(
b
);
CONNECT
(
b
,
triggered
(),
THEDP
,
podcastConfigureDialog
()
);
}
free
(
*
ppsz_name
);
free
(
*
ppsz_longname
);
}
free
(
ppsz_names
);
free
(
ppsz_longnames
);
return
menu
;
}
/**
/**
* Help/About Menu
* Help/About Menu
**/
**/
...
...
modules/gui/qt4/menus.hpp
View file @
1cab82c2
...
@@ -94,7 +94,6 @@ public:
...
@@ -94,7 +94,6 @@ public:
private:
private:
/* All main Menus */
/* All main Menus */
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
SDMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
ToolsMenu
(
QMenu
*
);
static
QMenu
*
ToolsMenu
(
QMenu
*
);
static
QMenu
*
ToolsMenu
(
QWidget
*
parent
)
{
return
ToolsMenu
(
new
QMenu
(
parent
)
);
}
static
QMenu
*
ToolsMenu
(
QWidget
*
parent
)
{
return
ToolsMenu
(
new
QMenu
(
parent
)
);
}
...
...
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