Make SysNotification title string translatable
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user