X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.h;h=b2b9445a7e10aec23054a8a92fd32d78beafc10f;hp=ac95494b302b48c52292baab2587baa87df1f0f8;hb=63af36e607d250637aaba0bba14d2158e79c7bed;hpb=d298e7275374e2da41b0ed9ef1080464a77c8cf1 diff --git a/src/qtui/chatline-old.h b/src/qtui/chatline-old.h index ac95494b..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; @@ -104,7 +104,10 @@ class ChatLineOld : public QObject, public AbstractUiMsg { int selectionStart, selectionEnd; void formatMsg(Message); void precomputeLine(); - QList calcFormatRanges(UiStyle::StyledText, QTextLayout::FormatRange additional = QTextLayout::FormatRange()); + QList calcFormatRanges(const UiStyle::StyledText &); + QList calcFormatRanges(const UiStyle::StyledText &, const QTextLayout::FormatRange &additional); + + static QColor _highlightColor; }; #endif