QString sender() const;
QString text() const;
MsgId msgId() const;
- BufferId bufferId() const;
+ BufferInfo bufferInfo() const;
bool isUrl(int pos) const;
QUrl getUrl(int pos) const;
qreal hght;
Message msg;
qreal tsWidth, senderWidth, textWidth;
- Style::FormattedString tsFormatted, senderFormatted, textFormatted;
+ Style::StyledString styledTimeStamp, styledSender, styledText;
struct FormatRange {
int start;
int selectionStart, selectionEnd;
void formatMsg(Message);
void precomputeLine();
- QList<FormatRange> calcFormatRanges(const Style::FormattedString &, QTextLayout::FormatRange additional = QTextLayout::FormatRange());
+ QList<FormatRange> calcFormatRanges(const Style::StyledString &, QTextLayout::FormatRange additional = QTextLayout::FormatRange());
};
#endif