diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-12 13:03:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-12 13:03:52 (GMT) |
commit | fdd64842f071436a20dbf2ba52257d50bb7bc1a4 (patch) | |
tree | 812e7ff056d5b449540b80e9ac9dc98eb9584cb9 /Swift/QtUI/ChatSnippet.cpp | |
parent | d073e9d261bb7134723e77f142603a555f8f9629 (diff) | |
download | swift-contrib-fdd64842f071436a20dbf2ba52257d50bb7bc1a4.zip swift-contrib-fdd64842f071436a20dbf2ba52257d50bb7bc1a4.tar.bz2 |
Move ChatSnippet::escape() to header.
Diffstat (limited to 'Swift/QtUI/ChatSnippet.cpp')
-rw-r--r-- | Swift/QtUI/ChatSnippet.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Swift/QtUI/ChatSnippet.cpp b/Swift/QtUI/ChatSnippet.cpp index 4d23526..7524623 100644 --- a/Swift/QtUI/ChatSnippet.cpp +++ b/Swift/QtUI/ChatSnippet.cpp @@ -16,16 +16,6 @@ ChatSnippet::ChatSnippet(bool appendToPrevious) : appendToPrevious_(appendToPrev ChatSnippet::~ChatSnippet() { } -QString ChatSnippet::escape(const QString& original) { - QString result(original); - result.replace("%message%", "%message%"); - result.replace("%sender%", "%sender%"); - result.replace("%time%", "%%time%"); - result.replace("%shortTime%", "%%shortTime%"); - result.replace("%userIconPath%", "%userIconPath%"); - return result; -} - QString ChatSnippet::timeToEscapedString(const QDateTime& time) { QDate now(QDate::currentDate()); QString date = ""; |