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
85149ef4
Commit
85149ef4
authored
Jan 08, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add a right-click action to save the playlist
parent
babcef91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+2
-0
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+7
-0
modules/gui/qt4/components/playlist/vlc_model.hpp
modules/gui/qt4/components/playlist/vlc_model.hpp
+2
-1
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
85149ef4
...
...
@@ -1099,6 +1099,8 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
case
ACTION_ENQUEUEDIR
:
case
ACTION_ENQUEUEGENERIC
:
return
canEdit
();
case
ACTION_SAVETOPLAYLIST
:
return
rowCount
()
>
0
;
default:
return
false
;
}
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
85149ef4
...
...
@@ -221,6 +221,10 @@ bool StandardPLPanel::popup( const QPoint &point )
ADD_MENU_ENTRY
(
QIcon
(),
qtr
(
I_PL_ADDPL
),
VLCModelSubInterface
::
ACTION_ADDTOPLAYLIST
);
menu
.
addSeparator
();
ADD_MENU_ENTRY
(
QIcon
(),
qtr
(
I_PL_SAVE
),
VLCModelSubInterface
::
ACTION_SAVETOPLAYLIST
);
menu
.
addSeparator
();
/* Item removal */
...
...
@@ -375,6 +379,9 @@ void StandardPLPanel::popupAction( QAction *action )
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
file
);
break
;
case
VLCModelSubInterface
:
:
ACTION_SAVETOPLAYLIST
:
THEDP
->
savePlayingToPlaylist
();
break
;
default:
model
->
action
(
action
,
list
);
}
...
...
modules/gui/qt4/components/playlist/vlc_model.hpp
View file @
85149ef4
...
...
@@ -94,7 +94,8 @@ public:
ACTION_CLEAR
,
ACTION_ENQUEUEFILE
,
ACTION_ENQUEUEDIR
,
ACTION_ENQUEUEGENERIC
ACTION_ENQUEUEGENERIC
,
ACTION_SAVETOPLAYLIST
};
struct
actionsContainerType
{
...
...
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