X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.h;h=b2b9445a7e10aec23054a8a92fd32d78beafc10f;hp=8d286b07e13b24d3bef25b77f9044118e099e2cb;hb=8bcd653df36521cd30aed7ddebf7faa9783a48f1;hpb=278aef059d7652b2a4e1359d72bb4028524246d4 diff --git a/src/qtui/chatline-old.h b/src/qtui/chatline-old.h index 8d286b07..b2b9445a 100644 --- a/src/qtui/chatline-old.h +++ b/src/qtui/chatline-old.h @@ -44,7 +44,7 @@ class ChatLineOld : public QObject, public AbstractUiMsg { Q_OBJECT public: - ChatLineOld(Message message); + ChatLineOld(const Message &message); virtual ~ChatLineOld(); qreal layout(qreal tsWidth, qreal nickWidth, qreal textWidth); @@ -70,7 +70,7 @@ class ChatLineOld : public QObject, public AbstractUiMsg { qreal hght; Message msg; qreal tsWidth, senderWidth, textWidth; - UiStyle::StyledText styledTimeStamp, styledSender, styledText; + UiStyle::StyledText styledTimeStamp, styledSender, styledContents; struct FormatRange { int start; @@ -106,6 +106,8 @@ class ChatLineOld : public QObject, public AbstractUiMsg { void precomputeLine(); QList calcFormatRanges(const UiStyle::StyledText &); QList calcFormatRanges(const UiStyle::StyledText &, const QTextLayout::FormatRange &additional); + + static QColor _highlightColor; }; #endif