KShare/notifications.cpp

10 lines
313 B
C++
Raw Normal View History

2017-04-25 22:17:36 +02:00
#include "notifications.hpp"
#include "mainwindow.hpp"
#include <QStatusBar>
void notifications::notify(QString title, QString body, QSystemTrayIcon::MessageIcon icon) {
MainWindow::inst()->tray->showMessage(title, body, icon, 5000);
MainWindow::inst()->statusBar()->showMessage(title + ": " + body);
2017-04-25 22:17:36 +02:00
}