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
2c13ce17
Commit
2c13ce17
authored
May 21, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: activate playlist item on right click (fix #2749)
Also, show the popup menu on press rather than release.
parent
83116c1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/customwidgets.hpp
+7
-4
No files found.
modules/gui/qt4/util/customwidgets.hpp
View file @
2c13ce17
...
@@ -93,15 +93,18 @@ public:
...
@@ -93,15 +93,18 @@ public:
void
mouseReleaseEvent
(
QMouseEvent
*
e
)
void
mouseReleaseEvent
(
QMouseEvent
*
e
)
{
{
if
(
e
->
button
()
&
Qt
::
RightButton
)
if
(
e
->
button
()
&
Qt
::
RightButton
)
{
return
;
/* Do NOT forward to QTreeView!! */
emit
rightClicked
(
indexAt
(
QPoint
(
e
->
x
(),
e
->
y
()
)
),
QCursor
::
pos
()
);
}
QTreeView
::
mouseReleaseEvent
(
e
);
QTreeView
::
mouseReleaseEvent
(
e
);
}
}
void
mousePressEvent
(
QMouseEvent
*
e
)
void
mousePressEvent
(
QMouseEvent
*
e
)
{
{
if
(
e
->
button
()
&
Qt
::
RightButton
)
{
emit
rightClicked
(
indexAt
(
QPoint
(
e
->
x
(),
e
->
y
()
)
),
QCursor
::
pos
()
);
return
;
}
if
(
e
->
button
()
&
Qt
::
LeftButton
)
if
(
e
->
button
()
&
Qt
::
LeftButton
)
{
{
if
(
!
indexAt
(
QPoint
(
e
->
x
(),
e
->
y
()
)
).
isValid
()
)
if
(
!
indexAt
(
QPoint
(
e
->
x
(),
e
->
y
()
)
).
isValid
()
)
...
...
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