summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-11-20 17:18:22 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-11-20 17:18:22 (GMT)
commitce4b7dc190c609520850a94d0a38d87002ff9f12 (patch)
tree31e25560572f53bc68011bcfb07f4972f15d62e8 /Swift/QtUI/ChatSnippet.h
parent71e3018e19db2ffa9d80d92c4c33e084737d40f4 (diff)
downloadswift-ce4b7dc190c609520850a94d0a38d87002ff9f12.zip
swift-ce4b7dc190c609520850a94d0a38d87002ff9f12.tar.bz2
Include date for MUC context older than today.
Resolves: #641 Release-Notes: MUC context for days other than today is now annotated.
Diffstat (limited to 'Swift/QtUI/ChatSnippet.h')
-rw-r--r--Swift/QtUI/ChatSnippet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatSnippet.h b/Swift/QtUI/ChatSnippet.h
index 69ca5b8..9786518 100644
--- a/Swift/QtUI/ChatSnippet.h
+++ b/Swift/QtUI/ChatSnippet.h
@@ -7,6 +7,7 @@
#pragma once
#include <QString>
+#include <QDateTime>
#include "QtChatTheme.h"
namespace Swift {
@@ -24,6 +25,8 @@ namespace Swift {
static QString escape(const QString&);
+ protected:
+ static QString timeToEscapedString(const QDateTime& time);
private:
bool appendToPrevious_;
};