1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): minor fix

This commit is contained in:
Monsterovich 2019-05-23 19:42:09 +02:00
parent 821ed52616
commit 161a773dbb
2 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ DesktopNotify::DesktopNotify()
notifyCore.registerApplication(snoreApp);
}
void DesktopNotify::createNotification(const QString& title, const QString &text, Snore::Icon &icon)
void DesktopNotify::createNotification(const QString& title, const QString& text, Snore::Icon& icon)
{
const Settings& s = Settings::getInstance();
if(!(s.getNotify() && s.getDesktopNotify())) {
@ -31,12 +31,12 @@ void DesktopNotify::createNotification(const QString& title, const QString &text
notifyCore.broadcastNotification(notify);
}
void DesktopNotify::notifyMessage(const QString title, const QString message)
void DesktopNotify::notifyMessage(const QString& title, const QString& message)
{
createNotification(title, message, snoreIcon);
}
void DesktopNotify::notifyMessagePixmap(const QString title, const QString message, QPixmap avatar)
void DesktopNotify::notifyMessagePixmap(const QString& title, const QString& message, QPixmap avatar)
{
Snore::Icon new_icon(avatar);
createNotification(title, message, new_icon);

View File

@ -21,12 +21,12 @@ public:
};
public slots:
void notifyMessage(const QString title, const QString message);
void notifyMessagePixmap(const QString title, const QString message, QPixmap avatar);
void notifyMessage(const QString& title, const QString& message);
void notifyMessagePixmap(const QString& title, const QString& message, QPixmap avatar);
void notifyMessageSimple(const MessageType type);
private:
void createNotification(const QString& title, const QString &text, Snore::Icon &icon);
void createNotification(const QString& title, const QString& text, Snore::Icon& icon);
private:
Snore::SnoreCore& notifyCore;