diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-02-15 18:36:10 -0500 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-03-17 19:17:13 +0100 |
commit | 648844089c1786f1439ea026d1f3f5d0b757a414 (patch) | |
tree | f0d0ea22de30ba1dccc266bbda3e4c7335ed1fba /src/notifications/ManagerMac.cpp | |
parent | make lint (diff) | |
download | nheko-648844089c1786f1439ea026d1f3f5d0b757a414.tar.xz |
Move data parsing into a dedicated function
Actually posting the notification is now the responsibility of a private function
Diffstat (limited to 'src/notifications/ManagerMac.cpp')
-rw-r--r-- | src/notifications/ManagerMac.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/notifications/ManagerMac.cpp b/src/notifications/ManagerMac.cpp new file mode 100644 index 00000000..41aea0d1 --- /dev/null +++ b/src/notifications/ManagerMac.cpp @@ -0,0 +1,11 @@ +#include "Manager.h" + +#include <QTextDocumentFragment> + +#include "Utils.h" + +QString +NotificationsManager::formatNotification(const QString &text) +{ + return utils::markdownToHtml(text); +} |