X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fchatline.cpp;h=3f447d22492834279bca86e0d64c8a19703f1938;hp=eff324b220f8b67c9b780f10d48775ddfd02230d;hb=48979ba2c343ab50ae93a8bb1c355ce79115bd4f;hpb=4046593abc81847b9c78c9bc02f5bdc949aace5d diff --git a/src/qtopia/chatline.cpp b/src/qtopia/chatline.cpp index eff324b2..3f447d22 100644 --- a/src/qtopia/chatline.cpp +++ b/src/qtopia/chatline.cpp @@ -21,17 +21,16 @@ #include #include "chatline.h" +#include "qtopiaui.h" ChatLine::ChatLine(Message msg) { - _text = msg.text(); // FIXME - _sender = msg.sender(); - _timeStamp = msg.timeStamp(); + //_styledSender = QtopiaUi::style()->styleString(msg.formattedSender()); + //_styledText = QtopiaUi::style()->styleString(msg.formattedText()); + _timestamp = msg.timestamp(); _msgId = msg.msgId(); _bufferInfo = msg.buffer(); - _htmlSender = formattedToHtml(msg.formattedSender()); - _htmlText = formattedToHtml(msg.formattedText()); - _htmlTimeStamp = formattedToHtml(msg.formattedTimeStamp()); + } QString ChatLine::sender() const { @@ -50,8 +49,8 @@ BufferInfo ChatLine::bufferInfo() const { return _bufferInfo; } -QDateTime ChatLine::timeStamp() const { - return _timeStamp; +QDateTime ChatLine::timestamp() const { + return _timestamp; } QString ChatLine::htmlSender() const { @@ -62,12 +61,12 @@ QString ChatLine::htmlText() const { return _htmlText; } -QString ChatLine::htmlTimeStamp() const { - return _htmlTimeStamp; +QString ChatLine::htmlTimestamp() const { + return _htmlTimestamp; } QString ChatLine::formattedToHtml(const QString &f) { - + return f; }