Commit a25fb17c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, menus: inline functions

parent 880de496
...@@ -411,11 +411,6 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu ) ...@@ -411,11 +411,6 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
return menu; return menu;
} }
QMenu *QVLCMenu::ToolsMenu( QWidget *parent )
{
return ToolsMenu( new QMenu( parent ) );
}
/** /**
* View Menu * View Menu
* Interface modification, load other interfaces, activate Extensions * Interface modification, load other interfaces, activate Extensions
...@@ -588,11 +583,6 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current ) ...@@ -588,11 +583,6 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
return Populate( p_intf, current, varnames, objects ); return Populate( p_intf, current, varnames, objects );
} }
QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QWidget *parent )
{
return AudioMenu( p_intf, new QMenu( parent ) );
}
/** /**
* Main Video Menu * Main Video Menu
* Subtitles are part of Video. * Subtitles are part of Video.
...@@ -648,11 +638,6 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current ) ...@@ -648,11 +638,6 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
return Populate( p_intf, current, varnames, objects ); return Populate( p_intf, current, varnames, objects );
} }
QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QWidget *parent )
{
return VideoMenu( p_intf, new QMenu( parent ) );
}
/** /**
* Navigation Menu * Navigation Menu
* For DVD, MP4, MOV and other chapter based format * For DVD, MP4, MOV and other chapter based format
...@@ -706,11 +691,6 @@ QMenu *QVLCMenu::RebuildNavigMenu( intf_thread_t *p_intf, QMenu *menu ) ...@@ -706,11 +691,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 );
} }
QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QWidget *parent )
{
return NavigMenu( p_intf, new QMenu( parent ) );
}
/** /**
* Service Discovery SubMenu * Service Discovery SubMenu
**/ **/
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
#include <QObject> #include <QObject>
#include <QAction> #include <QAction>
#include <QMenu>
#include <vector> #include <vector>
using namespace std; using namespace std;
class QMenu;
class QMenuBar; class QMenuBar;
class QSystemTrayIcon; class QSystemTrayIcon;
...@@ -97,7 +97,7 @@ private: ...@@ -97,7 +97,7 @@ private:
static QMenu *SDMenu( intf_thread_t *, QWidget * ); static QMenu *SDMenu( intf_thread_t *, QWidget * );
static QMenu *ToolsMenu( QMenu * ); static QMenu *ToolsMenu( QMenu * );
static QMenu *ToolsMenu( QWidget * ); static QMenu *ToolsMenu( QWidget *parent ) { return ToolsMenu( new QMenu( parent ) ); }
static QMenu *ViewMenu( intf_thread_t *, QMenu *, MainInterface * mi = NULL ); static QMenu *ViewMenu( intf_thread_t *, QMenu *, MainInterface * mi = NULL );
...@@ -105,14 +105,20 @@ private: ...@@ -105,14 +105,20 @@ private:
static void ExtensionsMenu( intf_thread_t *p_intf, QMenu * ); static void ExtensionsMenu( intf_thread_t *p_intf, QMenu * );
static QMenu *NavigMenu( intf_thread_t *, QMenu * ); static QMenu *NavigMenu( intf_thread_t *, QMenu * );
static QMenu *NavigMenu( intf_thread_t *, QWidget * ); static QMenu *NavigMenu( intf_thread_t *p_intf, QWidget *parent ) {
return NavigMenu( p_intf, new QMenu( parent ) );
}
static QMenu *RebuildNavigMenu( intf_thread_t *, QMenu *); static QMenu *RebuildNavigMenu( intf_thread_t *, QMenu *);
static QMenu *VideoMenu( intf_thread_t *, QMenu * ); static QMenu *VideoMenu( intf_thread_t *, QMenu * );
static QMenu *VideoMenu( intf_thread_t *, QWidget * ); static QMenu *VideoMenu( intf_thread_t *p_intf, QWidget *parent ) {
return VideoMenu( p_intf, new QMenu( parent ) );
}
static QMenu *AudioMenu( intf_thread_t *, QMenu * ); static QMenu *AudioMenu( intf_thread_t *, QMenu * );
static QMenu *AudioMenu( intf_thread_t *, QWidget * ); static QMenu *AudioMenu( intf_thread_t *p_intf, QWidget *parent ) {
return AudioMenu( p_intf, new QMenu( parent ) );
}
static QMenu *HelpMenu( QWidget * ); static QMenu *HelpMenu( QWidget * );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment