Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ee95f804
Commit
ee95f804
authored
Apr 11, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: no popup menu over the status bar and menu bar
parent
0f749c63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+7
-3
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
ee95f804
...
...
@@ -246,7 +246,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Enable the popup menu in the MI */
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
CONNECT
(
this
,
customContextMenuRequested
(
const
QPoint
&
),
this
,
popupMenu
()
);
this
,
popupMenu
(
const
QPoint
&
)
);
/* Final sizing and showing */
setMinimumWidth
(
__MAX
(
controls
->
sizeHint
().
width
(),
...
...
@@ -633,8 +633,12 @@ void MainInterface::toggleFSC()
QApplication
::
postEvent
(
fullscreenControls
,
eShow
);
}
void
MainInterface
::
popupMenu
()
void
MainInterface
::
popupMenu
(
const
QPoint
&
p
)
{
/* Ow, that's ugly: don't show the popup menu if cursor over
* the main menu bar or the status bar */
if
(
!
childAt
(
p
)
||
(
(
childAt
(
p
)
!=
menuBar
()
)
&&
(
childAt
(
p
)
->
parentWidget
()
!=
statusBar
()
)
)
)
QVLCMenu
::
PopupMenu
(
p_intf
,
true
);
}
...
...
modules/gui/qt4/main_interface.hpp
View file @
ee95f804
...
...
@@ -158,7 +158,7 @@ public slots:
void
toggleAdvanced
();
void
toggleFullScreen
();
void
toggleFSC
();
void
popupMenu
();
void
popupMenu
(
const
QPoint
&
);
/* 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