X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtopia%2Fchatline.cpp;h=d0fbf6e05b9d6448263ed8d2c9abc843637e3122;hb=99445d2c7ce2f5336798098963f4954eaafebdde;hp=3f447d22492834279bca86e0d64c8a19703f1938;hpb=48979ba2c343ab50ae93a8bb1c355ce79115bd4f;p=quassel.git 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) {