Added action receiver, refactored controller, extracted parsing logic from controller

This commit is contained in:
David Kaya
2017-02-03 14:21:14 +01:00
parent 5d800be890
commit 001093d3bb
8 changed files with 116 additions and 75 deletions

View File

@@ -4,12 +4,12 @@
static QSystemTrayIcon* sharedSystemTrayIcon;
void Notification::show(const std::string& title, const std::string& message)
void Notification::show(const QString &title, const QString &message)
{
if (sharedSystemTrayIcon == nullptr)
sharedSystemTrayIcon = new QSystemTrayIcon();
sharedSystemTrayIcon->show();
sharedSystemTrayIcon->showMessage(QString::fromStdString(title), QString::fromStdString(message));
sharedSystemTrayIcon->showMessage(title, message);
}
void Notification::hide()