X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatline-old.h;h=5ce5fc3f6563451805681b1a5b1950cebb3014c4;hb=374ea2a5188930b880ad67584a9b0055022feecf;hp=ac95494b302b48c52292baab2587baa87df1f0f8;hpb=d298e7275374e2da41b0ed9ef1080464a77c8cf1;p=quassel.git diff --git a/src/qtui/chatline-old.h b/src/qtui/chatline-old.h index ac95494b..5ce5fc3f 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); @@ -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