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
10962a57
Commit
10962a57
authored
Feb 19, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add the popup menu in the main interface
parent
7410f0f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+10
-0
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
10962a57
...
...
@@ -256,6 +256,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Playlist */
if
(
b_visible
)
togglePlaylist
();
/* Enable the popup menu in the MI */
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
CONNECT
(
this
,
customContextMenuRequested
(
const
QPoint
&
),
this
,
popupMenu
()
);
/* Final sizing and showing */
setMinimumWidth
(
__MAX
(
controls
->
sizeHint
().
width
(),
menuBar
()
->
sizeHint
().
width
()
)
);
...
...
@@ -647,6 +652,11 @@ void MainInterface::toggleFSC()
QApplication
::
postEvent
(
fullscreenControls
,
eShow
);
}
void
MainInterface
::
popupMenu
()
{
QVLCMenu
::
PopupMenu
(
p_intf
,
true
);
}
void
MainInterface
::
debug
()
{
#ifndef NDEBUG
...
...
modules/gui/qt4/main_interface.hpp
View file @
10962a57
...
...
@@ -159,6 +159,7 @@ public slots:
void
toggleAdvanced
();
void
toggleFullScreen
();
void
toggleFSC
();
void
popupMenu
();
/* Manage the Video Functions from the vout threads */
void
releaseVideoSlot
(
void
);
...
...
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