Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
17f0388b
Commit
17f0388b
authored
Apr 25, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add a close to systray menu option.
Close #2825
parent
c65a0ac1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+6
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+8
-2
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
17f0388b
...
...
@@ -132,6 +132,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
settings
->
endGroup
(
);
/*********************************
* Create the Systray Management *
*********************************/
initSystray
();
/**************************
* UI and Widgets design
**************************/
...
...
@@ -152,11 +157,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
createStatusBar
();
setStatusBarVisibility
(
getSettings
()
->
value
(
"MainWindow/status-bar-visible"
,
false
).
toBool
()
);
/*********************************
* Create the Systray Management *
*********************************/
initSystray
();
/********************
* Input Manager *
********************/
...
...
modules/gui/qt4/menus.cpp
View file @
17f0388b
...
...
@@ -309,7 +309,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi,
setDesktopAware set to false */
QMenuBar
*
bar
=
mi
->
menuBar
();
addMenuToMainbar
(
FileMenu
(
p_intf
,
bar
),
qtr
(
"&Media"
),
bar
);
addMenuToMainbar
(
FileMenu
(
p_intf
,
bar
,
mi
),
qtr
(
"&Media"
),
bar
);
/* Dynamic menus, rebuilt before being showed */
BAR_DADD
(
NavigMenu
(
p_intf
,
bar
),
qtr
(
"P&layback"
),
3
);
...
...
@@ -329,7 +329,7 @@ void QVLCMenu::createMenuBar( MainInterface *mi,
* Media ( File ) Menu
* Opening, streaming and quit
**/
QMenu
*
QVLCMenu
::
FileMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
QMenu
*
QVLCMenu
::
FileMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
,
MainInterface
*
mi
)
{
QMenu
*
menu
=
new
QMenu
(
parent
);
QAction
*
action
;
...
...
@@ -379,6 +379,12 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
action
->
setCheckable
(
true
);
action
->
setChecked
(
THEMIM
->
getPlayExitState
()
);
if
(
mi
->
getSysTray
()
)
{
action
=
menu
->
addAction
(
qtr
(
"Close to systray"
),
mi
,
SLOT
(
toggleUpdateSystrayMenu
()
)
);
}
addDPStaticEntry
(
menu
,
qtr
(
"&Quit"
)
,
":/menu/quit"
,
SLOT
(
quit
()
),
"Ctrl+Q"
);
return
menu
;
...
...
modules/gui/qt4/menus.hpp
View file @
17f0388b
...
...
@@ -93,7 +93,7 @@ public:
private:
/* All main Menus */
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
);
static
QMenu
*
FileMenu
(
intf_thread_t
*
,
QWidget
*
,
MainInterface
*
mi
=
NULL
);
static
QMenu
*
ToolsMenu
(
QMenu
*
);
static
QMenu
*
ToolsMenu
(
QWidget
*
parent
)
{
return
ToolsMenu
(
new
QMenu
(
parent
)
);
}
...
...
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