summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/SystemMessageSnippet.cpp')
-rw-r--r--Swift/QtUI/SystemMessageSnippet.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Swift/QtUI/SystemMessageSnippet.cpp b/Swift/QtUI/SystemMessageSnippet.cpp
index ba0ec1b..db57b1f 100644
--- a/Swift/QtUI/SystemMessageSnippet.cpp
+++ b/Swift/QtUI/SystemMessageSnippet.cpp
@@ -10,12 +10,16 @@
namespace Swift {
-SystemMessageSnippet::SystemMessageSnippet(const QString& message, const QDateTime& time, bool appendToPrevious) : ChatSnippet(appendToPrevious) {
- content_ = loadTemplate(":/themes/Default/Status.html");
+SystemMessageSnippet::SystemMessageSnippet(const QString& message, const QDateTime& time, bool appendToPrevious, QtChatTheme* theme) : ChatSnippet(appendToPrevious) {
+ content_ = theme->getStatus();
content_.replace("%message%", escape(message));
content_.replace("%shortTime%", escape(time.toString("h:mm")));
content_.replace("%time%", escape(time.toString("h:mm")));
}
+SystemMessageSnippet::~SystemMessageSnippet() {
+
+}
+
}