Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
50a2677b
Commit
50a2677b
authored
Oct 07, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Adding a Fast Playlist access in the right-click menus
As asked by Laurent Close #4722
parent
6196b032
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+19
-8
No files found.
modules/gui/qt4/menus.cpp
View file @
50a2677b
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_intf_strings.h>
#include <vlc_intf_strings.h>
#include <vlc_vout.h>
/* vout_thread_t */
#include <vlc_vout.h>
/* vout_thread_t */
#include <vlc_aout.h>
#include <vlc_aout.h>
/* audio_output_t */
#include "menus.hpp"
#include "menus.hpp"
...
@@ -46,7 +46,9 @@
...
@@ -46,7 +46,9 @@
#include "input_manager.hpp"
/* Input Management */
#include "input_manager.hpp"
/* Input Management */
#include "recents.hpp"
/* Recent Items */
#include "recents.hpp"
/* Recent Items */
#include "actions_manager.hpp"
/* Actions Management: play+volume */
#include "actions_manager.hpp"
/* Actions Management: play+volume */
#include "extensions_manager.hpp"
/* Extensions menu*/
#include "extensions_manager.hpp"
/* Extensions menu */
#include "util/qmenuview.hpp"
/* Simple Playlist menu */
#include "components/playlist/playlist_model.hpp"
/* PLModel getter */
#include <QMenu>
#include <QMenu>
#include <QMenuBar>
#include <QMenuBar>
...
@@ -1062,6 +1064,15 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
...
@@ -1062,6 +1064,15 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
menu
->
addMenu
(
submenu
);
menu
->
addMenu
(
submenu
);
}
}
/* */
QMenuView
*
plMenu
=
new
QMenuView
(
menu
);
plMenu
->
setTitle
(
qtr
(
"Playlist"
)
);
PLModel
*
model
=
PLModel
::
getPLModel
(
p_intf
);
plMenu
->
setModel
(
model
);
CONNECT
(
plMenu
,
activated
(
const
QModelIndex
&
),
model
,
activateItem
(
const
QModelIndex
&
));
menu
->
addMenu
(
plMenu
);
/* Static entries for ending, like open */
/* Static entries for ending, like open */
PopupMenuStaticEntries
(
menu
);
PopupMenuStaticEntries
(
menu
);
...
...
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