summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qsystemtrayicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/util/qsystemtrayicon.cpp')
-rw-r--r--src/gui/util/qsystemtrayicon.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/util/qsystemtrayicon.cpp b/src/gui/util/qsystemtrayicon.cpp
index 941961b..1c95558 100644
--- a/src/gui/util/qsystemtrayicon.cpp
+++ b/src/gui/util/qsystemtrayicon.cpp
@@ -335,6 +335,16 @@ bool QSystemTrayIcon::event(QEvent *e)
\sa activated()
*/
+/*!
+ \fn void QSystemTrayIcon::messageTimeout()
+
+ This signal is emitted when the message displayed using showMessage()
+ hides automatically after being shown for the timeout value.
+
+ Currently this signal is not sent on Mac OS X.
+
+ \since 4.8
+*/
/*!
Returns true if the system tray is available; otherwise returns false.
@@ -657,8 +667,10 @@ void QBalloonTip::timerEvent(QTimerEvent *e)
{
if (e->timerId() == timerId) {
killTimer(timerId);
- if (!underMouse())
+ if (!underMouse()) {
close();
+ emit trayIcon->messageTimeout();
+ }
return;
}
QWidget::timerEvent(e);