Make SysNotification title string translatable

This commit is contained in:
lupoDharkael
2018-04-11 20:00:05 +02:00
parent 009b6fb71a
commit 1047aa0058
2 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ SystemNotification::SystemNotification(QObject *parent) : QObject(parent) {
}
#endif
void SystemNotification::sendMessage(const QString &text) {
sendMessage(text, tr("Flameshot Info"));
}
void SystemNotification::sendMessage(
const QString &text,
const QString &title,

View File

@@ -26,8 +26,10 @@ class SystemNotification : public QObject {
public:
explicit SystemNotification(QObject *parent = nullptr);
void sendMessage(const QString &text);
void sendMessage(const QString &text,
const QString &title = "Flameshot Info",
const QString &title,
const int timeout = 5000);
private: