summary refs log tree commit diff
path: root/src/notifications/ManagerMac.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-02-15 18:36:10 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:17:13 +0100
commit648844089c1786f1439ea026d1f3f5d0b757a414 (patch)
treef0d0ea22de30ba1dccc266bbda3e4c7335ed1fba /src/notifications/ManagerMac.cpp
parentmake lint (diff)
downloadnheko-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.cpp11
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);
+}