X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fchatline.cpp;h=d0fbf6e05b9d6448263ed8d2c9abc843637e3122;hp=3f447d22492834279bca86e0d64c8a19703f1938;hb=fbc4df88ae0bb5e4d9394922395ce2ba29d9108e;hpb=0ff076706c3d353ec9b098b1eca270195288774e diff --git a/src/qtopia/chatline.cpp b/src/qtopia/chatline.cpp index 3f447d22..d0fbf6e0 100644 --- a/src/qtopia/chatline.cpp +++ b/src/qtopia/chatline.cpp @@ -22,10 +22,11 @@ #include "chatline.h" #include "qtopiaui.h" +#include "qtopiauistyle.h" ChatLine::ChatLine(Message msg) { - //_styledSender = QtopiaUi::style()->styleString(msg.formattedSender()); - //_styledText = QtopiaUi::style()->styleString(msg.formattedText()); + _styledSender = QtopiaUi::style()->styleString(msg.formattedSender()); + _styledText = QtopiaUi::style()->styleString(msg.formattedText()); _timestamp = msg.timestamp(); _msgId = msg.msgId(); _bufferInfo = msg.buffer(); @@ -53,17 +54,14 @@ QDateTime ChatLine::timestamp() const { return _timestamp; } -QString ChatLine::htmlSender() const { - return _htmlSender; +UiStyle::StyledText ChatLine::styledSender() const { + return _styledSender; } -QString ChatLine::htmlText() const { - return _htmlText; +UiStyle::StyledText ChatLine::styledText() const { + return _styledText; } -QString ChatLine::htmlTimestamp() const { - return _htmlTimestamp; -} QString ChatLine::formattedToHtml(const QString &f) {