diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-08-29 22:32:59 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-08-30 14:53:32 (GMT) |
commit | b9b535ffd46382c413504a1781400c1a554e04a8 (patch) | |
tree | 723b1e948930478e0324c374f74f1fabc88699ec /Swift/QtUI/ChatSnippet.cpp | |
parent | 5546afc2bbf8ab0fd49647150da7a5f3df01deaf (diff) | |
download | swift-b9b535ffd46382c413504a1781400c1a554e04a8.zip swift-b9b535ffd46382c413504a1781400c1a554e04a8.tar.bz2 |
Render the Chat view directly with DOM commands, not javascript.
Tested locally, but it's conceivable there will be regressions.
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 5eb6268..2218c07 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::loadTemplate(const QString& filename) { - QFile file(filename); - bool result = file.open(QIODevice::ReadOnly); - Q_ASSERT(result); - Q_UNUSED(result); - QString content = file.readAll(); - file.close(); - return content; -} - QString ChatSnippet::escape(const QString& original) { QString result(original); result.replace("%message%", "%message%"); |