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
15f19b6e
Commit
15f19b6e
authored
Jul 29, 2010
by
Juho Vähä-Herttua
Committed by
Jean-Baptiste Kempf
Jul 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Make the systray menu work much nicer on Mac
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0b86dfab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+4
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+3
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
15f19b6e
...
@@ -971,7 +971,11 @@ void MainInterface::handleSystrayClick(
...
@@ -971,7 +971,11 @@ void MainInterface::handleSystrayClick(
{
{
case
QSystemTrayIcon
:
:
Trigger
:
case
QSystemTrayIcon
:
:
Trigger
:
case
QSystemTrayIcon
:
:
DoubleClick
:
case
QSystemTrayIcon
:
:
DoubleClick
:
#ifdef Q_WS_MAC:
QVLCMenu
::
updateSystrayMenu
(
this
,
p_intf
);
#else
toggleUpdateSystrayMenu
();
toggleUpdateSystrayMenu
();
#endif
break
;
break
;
case
QSystemTrayIcon
:
:
MiddleClick
:
case
QSystemTrayIcon
:
:
MiddleClick
:
sysTray
->
showMessage
(
qtr
(
"VLC media player"
),
sysTray
->
showMessage
(
qtr
(
"VLC media player"
),
...
...
modules/gui/qt4/menus.cpp
View file @
15f19b6e
...
@@ -1077,6 +1077,7 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
...
@@ -1077,6 +1077,7 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
QMenu
*
sysMenu
=
mi
->
getSysTrayMenu
();
QMenu
*
sysMenu
=
mi
->
getSysTrayMenu
();
sysMenu
->
clear
();
sysMenu
->
clear
();
#ifndef Q_WS_MAC
/* Hide / Show VLC and cone */
/* Hide / Show VLC and cone */
if
(
mi
->
isVisible
()
||
b_force_visible
)
if
(
mi
->
isVisible
()
||
b_force_visible
)
{
{
...
@@ -1090,8 +1091,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
...
@@ -1090,8 +1091,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
qtr
(
"Show VLC media player"
),
mi
,
qtr
(
"Show VLC media player"
),
mi
,
SLOT
(
toggleUpdateSystrayMenu
()
)
);
SLOT
(
toggleUpdateSystrayMenu
()
)
);
}
}
sysMenu
->
addSeparator
();
sysMenu
->
addSeparator
();
#endif
PopupPlayEntries
(
sysMenu
,
p_intf
,
p_input
);
PopupPlayEntries
(
sysMenu
,
p_intf
,
p_input
);
PopupMenuPlaylistControlEntries
(
sysMenu
,
p_intf
);
PopupMenuPlaylistControlEntries
(
sysMenu
,
p_intf
);
PopupMenuControlEntries
(
sysMenu
,
p_intf
);
PopupMenuControlEntries
(
sysMenu
,
p_intf
);
...
...
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