mirror of
https://github.com/ysoftdevs/Testa.git
synced 2026-01-14 07:33:25 +01:00
Added action receiver, refactored controller, extracted parsing logic from controller
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user