Removing the old ChatWidget and related stuff from CMakeLists.txt
[quassel.git] / src / qtui / chatline-old.h
index ac95494..b2b9445 100644 (file)
@@ -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<FormatRange> calcFormatRanges(UiStyle::StyledText, QTextLayout::FormatRange additional = QTextLayout::FormatRange());
+    QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &);
+    QList<FormatRange> calcFormatRanges(const UiStyle::StyledText &, const QTextLayout::FormatRange &additional);
+
+    static QColor _highlightColor;
 };
 
 #endif