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
22da0747
Commit
22da0747
authored
Nov 03, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: playlist popup menu enhancement
parent
37a2bad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+16
-15
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
22da0747
...
...
@@ -959,32 +959,33 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
PL_UNLOCK
;
current_selection
=
list
;
QMenu
*
menu
=
new
QMenu
;
QMenu
menu
;
if
(
i_popup_item
>
-
1
)
{
menu
->
addAction
(
qtr
(
I_POP_PLAY
),
this
,
SLOT
(
popupPlay
()
)
);
menu
->
addAction
(
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
menu
->
addSeparator
();
menu
->
addAction
(
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
->
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
->
addSeparator
();
menu
->
addAction
(
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
->
addSeparator
();
QMenu
*
sort_menu
=
menu
->
addMenu
(
qtr
(
"Sort by "
)
+
menu
.
addAction
(
qtr
(
I_POP_PLAY
),
this
,
SLOT
(
popupPlay
()
)
);
menu
.
addAction
(
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
menu
.
addSeparator
();
menu
.
addAction
(
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
.
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
.
addSeparator
();
menu
.
addAction
(
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addSeparator
();
QMenu
*
sort_menu
=
menu
.
addMenu
(
qtr
(
"Sort by "
)
+
qfu
(
psz_column_title
(
columnToMeta
(
index
.
column
()
)
)
)
);
sort_menu
->
addAction
(
qtr
(
"Ascending"
),
this
,
SLOT
(
popupSortAsc
()
)
);
sort_menu
->
addAction
(
qtr
(
"Descending"
),
this
,
SLOT
(
popupSortDesc
()
)
);
}
if
(
tree
)
menu
->
addAction
(
qtr
(
I_POP_ADD
),
this
,
SLOT
(
popupAddNode
()
)
);
if
(
tree
&&
canEdit
()
)
menu
.
addAction
(
qtr
(
I_POP_ADD
),
this
,
SLOT
(
popupAddNode
()
)
);
if
(
i_popup_item
>
-
1
)
{
menu
->
addSeparator
();
menu
->
addAction
(
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
menu
.
addSeparator
();
menu
.
addAction
(
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
}
menu
->
popup
(
point
);
if
(
!
menu
.
isEmpty
()
)
menu
.
exec
(
point
);
}
void
PLModel
::
popupDel
()
...
...
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