Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Planella
juk
Commits
73e5240b
Commit
73e5240b
authored
Apr 28, 2009
by
Aleix Pol Gonzalez
🐧
Browse files
Add a connect() to let the middle button click to work.
svn path=/trunk/KDE/kdemultimedia/juk/; revision=960734
parent
661cb794
Changes
2
Hide whitespace changes
Inline
Side-by-side
systemtray.cpp
View file @
73e5240b
...
...
@@ -231,6 +231,7 @@ SystemTray::SystemTray(QWidget *parent) : KSystemTrayIcon(parent),
m_fadeTimer
=
new
QTimer
(
this
);
m_fadeTimer
->
setObjectName
(
"systrayFadeTimer"
);
connect
(
m_fadeTimer
,
SIGNAL
(
timeout
()),
SLOT
(
slotNextStep
()));
connect
(
this
,
SIGNAL
(
activated
(
QSystemTrayIcon
::
ActivationReason
)),
SLOT
(
slotActivated
(
QSystemTrayIcon
::
ActivationReason
)));
if
(
PlayerManager
::
instance
()
->
playing
())
slotPlay
();
...
...
systemtray.h
View file @
73e5240b
...
...
@@ -104,7 +104,6 @@ private:
virtual
void
wheelEvent
(
QWheelEvent
*
e
);
void
createPopup
();
void
setToolTip
(
const
QString
&
tip
=
QString
(),
const
QPixmap
&
cover
=
QPixmap
());
void
slotActivated
(
QSystemTrayIcon
::
ActivationReason
reason
);
void
ousePressEvent
(
QMouseEvent
*
e
);
QPixmap
createPixmap
(
const
QString
&
pixName
);
...
...
@@ -139,6 +138,7 @@ private slots:
void
slotBack
();
void
slotFadeOut
();
///< Fades out the text
void
slotMouseInPopup
();
///< Forces the text back to its normal color.
void
slotActivated
(
QSystemTrayIcon
::
ActivationReason
reason
);
private:
QPixmap
m_playPix
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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