Prefix tooltips with app name

This commit is contained in:
Daniel Molkentin 2013-11-23 00:05:50 +01:00
parent ea2b5fb29c
commit 67132326d2
2 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,7 @@
*/
#include "systray.h"
#include "mirall/theme.h"
#ifdef USE_FDO_NOTIFICATIONS
#include <QDBusConnection>
@ -43,4 +44,9 @@ void Systray::showMessage(const QString & title, const QString & message, Messag
}
}
void Systray::setToolTip(const QString &tip)
{
QSystemTrayIcon::setToolTip(tr("%1: %2").arg(Theme::instance()->appNameGUI(), tip));
}
} // namespace Mirall

View file

@ -26,7 +26,7 @@ class Systray : public QSystemTrayIcon
Q_OBJECT
public:
void showMessage(const QString & title, const QString & message, MessageIcon icon = Information, int millisecondsTimeoutHint = 10000);
void setToolTip(const QString &tip);
};
} // namespace Mirall