Move data parsing into a dedicated function
Actually posting the notification is now the responsibility of a private function
This commit is contained in:
parent
09303ca49f
commit
648844089c
7 changed files with 103 additions and 74 deletions
11
src/notifications/ManagerMac.cpp
Normal file
11
src/notifications/ManagerMac.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "Manager.h"
|
||||
|
||||
#include <QTextDocumentFragment>
|
||||
|
||||
#include "Utils.h"
|
||||
|
||||
QString
|
||||
NotificationsManager::formatNotification(const QString &text)
|
||||
{
|
||||
return utils::markdownToHtml(text);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue