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
c338f4fd
Commit
c338f4fd
authored
Feb 04, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the normal popupMenu when no item is under the selection
parent
99d44589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+11
-4
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
c338f4fd
...
...
@@ -32,6 +32,7 @@
#include "components/playlist/standardpanel.hpp"
#include "components/playlist/icon_view.hpp"
#include "util/customwidgets.hpp"
#include "menus.hpp"
#include <vlc_intf_strings.h>
...
...
@@ -87,7 +88,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
layout
->
addWidget
(
search
,
0
,
4
);
CONNECT
(
search
,
textChanged
(
const
QString
&
),
this
,
search
(
const
QString
&
)
);
layout
->
setColumnStretch
(
4
,
2
);
layout
->
setColumnStretch
(
4
,
10
);
/* Add item to the playlist button */
addButton
=
new
QToolButton
;
...
...
@@ -185,9 +186,15 @@ void StandardPLPanel::popupPlView( const QPoint &point )
{
QModelIndex
index
=
currentView
->
indexAt
(
point
);
QPoint
globalPoint
=
currentView
->
viewport
()
->
mapToGlobal
(
point
);
QItemSelectionModel
*
selection
=
currentView
->
selectionModel
();
QModelIndexList
list
=
selection
->
selectedIndexes
();
model
->
popup
(
index
,
globalPoint
,
list
);
if
(
!
index
.
isValid
()
){
QVLCMenu
::
PopupMenu
(
p_intf
,
true
);
}
else
{
QItemSelectionModel
*
selection
=
currentView
->
selectionModel
();
QModelIndexList
list
=
selection
->
selectedIndexes
();
model
->
popup
(
index
,
globalPoint
,
list
);
}
}
void
StandardPLPanel
::
popupSelectColumn
(
QPoint
pos
)
...
...
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