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
a3e13550
Commit
a3e13550
authored
Jun 08, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PlPopup: fix logical grouping of actions
parent
223e967c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+11
-5
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
a3e13550
...
@@ -1027,12 +1027,12 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
...
@@ -1027,12 +1027,12 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
.
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
.
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/info"
),
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/info"
),
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addSeparator
();
if
(
p_input
->
psz_uri
&&
!
strncasecmp
(
p_input
->
psz_uri
,
"file://"
,
7
)
)
if
(
p_input
->
psz_uri
&&
!
strncasecmp
(
p_input
->
psz_uri
,
"file://"
,
7
)
)
{
{
menu
.
addAction
(
QIcon
(
":/type/folder-grey"
),
menu
.
addAction
(
QIcon
(
":/type/folder-grey"
),
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
}
}
menu
.
addSeparator
();
}
}
vlc_gc_decref
(
p_input
);
vlc_gc_decref
(
p_input
);
...
@@ -1040,8 +1040,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
...
@@ -1040,8 +1040,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
if
(
canEdit
()
)
if
(
canEdit
()
)
{
{
QIcon
addIcon
(
":/buttons/playlist/playlist_add"
);
QIcon
addIcon
(
":/buttons/playlist/playlist_add"
);
menu
.
addSeparator
();
if
(
tree
)
menu
.
addAction
(
addIcon
,
qtr
(
I_POP_NEWFOLDER
),
this
,
SLOT
(
popupAddNode
()
)
);
if
(
tree
)
menu
.
addAction
(
addIcon
,
qtr
(
I_POP_NEWFOLDER
),
this
,
SLOT
(
popupAddNode
()
)
);
menu
.
addSeparator
();
if
(
rootItem
->
id
()
==
THEPL
->
p_playing
->
i_id
)
if
(
rootItem
->
id
()
==
THEPL
->
p_playing
->
i_id
)
{
{
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simplePLAppendDialog
())
);
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simplePLAppendDialog
())
);
...
@@ -1057,22 +1057,28 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
...
@@ -1057,22 +1057,28 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
}
}
}
}
/* Item removal */
if
(
i_popup_item
>
-
1
)
if
(
i_popup_item
>
-
1
)
{
{
if
(
rootItem
->
id
()
!=
THEPL
->
p_playing
->
i_id
)
if
(
rootItem
->
id
()
!=
THEPL
->
p_playing
->
i_id
)
menu
.
addAction
(
qtr
(
"Add to playlist"
),
this
,
SLOT
(
popupAddToPlaylist
()
)
);
menu
.
addAction
(
qtr
(
"Add to playlist"
),
this
,
SLOT
(
popupAddToPlaylist
()
)
);
menu
.
addAction
(
QIcon
(
":/buttons/playlist/playlist_remove"
),
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
}
}
menu
.
addSeparator
();
menu
.
addSeparator
();
/* Item removal */
if
(
i_popup_item
>
-
1
)
{
menu
.
addAction
(
QIcon
(
":/buttons/playlist/playlist_remove"
),
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
}
if
(
canEdit
()
)
{
if
(
canEdit
()
)
{
menu
.
addAction
(
QIcon
(
":/toolbar/clear"
),
qtr
(
"Clear playlist"
),
menu
.
addAction
(
QIcon
(
":/toolbar/clear"
),
qtr
(
"Clear playlist"
),
this
,
SLOT
(
clearPlaylist
()
)
);
this
,
SLOT
(
clearPlaylist
()
)
);
}
}
menu
.
addSeparator
();
/* Playlist sorting */
/* Playlist sorting */
if
(
!
sortingMenu
)
if
(
!
sortingMenu
)
{
{
...
...
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