vlc_linux/vlc-3.0.16/modules/gui/qt/menus.cpp
// Add an action with a submenu
Add an action with a submenu
Add an action with a submenu
static inline QMenu *addActionWithSubmenu( QMenu *_menu, QVariant val, QString title ) {
    QAction *_action = new QAction( title, _menu );
    QMenu *_submenu = new QMenu( _menu );
    _action->setData( val );
    _action->setMenu( _submenu );
    _menu->addAction( _action );
    return _submenu;
}
static inline QMenu * addActionWithSubmenu ( QMenu * _menu , QVariant val , QString title ) { QAction * _action = new QAction ( title , _menu ) ; QMenu * _submenu = new QMenu ( _menu ) ; _action -> setData ( val ) ; _action -> setMenu ( _submenu ) ; _menu -> addAction ( _action ) ; return _submenu ; }
Add an action with a submenu
Add an action with a submenu