mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Prefix tooltips with app name
This commit is contained in:
parent
ea2b5fb29c
commit
67132326d2
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue