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
734fe5c6
Commit
734fe5c6
authored
Sep 26, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: regroup systray connect to a central place
parent
ba8e2bf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
25 deletions
+12
-25
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+12
-25
No files found.
modules/gui/qt4/main_interface.cpp
View file @
734fe5c6
/*****************************************************************************
* main_interface.cpp : Main interface
****************************************************************************
* Copyright (C) 2006-201
0
VideoLAN and AUTHORS
* Copyright (C) 2006-201
1
VideoLAN and AUTHORS
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
...
...
@@ -174,9 +174,10 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
*********************************/
initSystray
();
/************************************************************
* Connect the input manager to the GUI elements it manages *
************************************************************/
/*************************************************************
* Connect the input manager to the GUI elements it manages *
* Beware initSystray did some connects on input manager too *
*************************************************************/
/**
* Connects on nameChanged()
* Those connects are different because options can impeach them to trigger.
...
...
@@ -184,33 +185,12 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Main Interface statusbar */
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
setName
(
const
QString
&
)
);
/* and systray */
#ifndef HAVE_MAEMO
if
(
sysTray
)
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
updateSystrayTooltipName
(
const
QString
&
)
);
}
#endif
/* and title of the Main Interface*/
if
(
var_InheritBool
(
p_intf
,
"qt-name-in-title"
)
)
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
setVLCWindowsTitle
(
const
QString
&
)
);
}
/**
* CONNECTS on PLAY_STATUS
**/
/* Status on the systray */
#ifndef HAVE_MAEMO
if
(
sysTray
)
{
CONNECT
(
THEMIM
->
getIM
(),
playingStatusChanged
(
int
),
this
,
updateSystrayTooltipStatus
(
int
)
);
}
#endif
/* END CONNECTS ON IM */
/* VideoWidget connects for asynchronous calls */
...
...
@@ -997,6 +977,13 @@ void MainInterface::createSystray()
CONNECT
(
sysTray
,
activated
(
QSystemTrayIcon
::
ActivationReason
),
this
,
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
)
);
/* Connects on nameChanged() */
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
updateSystrayTooltipName
(
const
QString
&
)
);
/* Connect PLAY_STATUS on the systray */
CONNECT
(
THEMIM
->
getIM
(),
playingStatusChanged
(
int
),
this
,
updateSystrayTooltipStatus
(
int
)
);
}
/**
...
...
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