Fix buffer preselection on reconnect
[quassel.git] / src / qtui / markerlineitem.h
index 3911da8..827fa25 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "chatscene.h"
 
+class ChatLine;
+
 class MarkerLineItem : public QGraphicsObject {
   Q_OBJECT
 
@@ -33,10 +35,13 @@ public:
   virtual inline int type() const { return ChatScene::MarkerLineType; }
 
   inline QRectF boundingRect() const { return _boundingRect; }
-
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
 
+  inline ChatLine *chatLine() const { return _chatLine; }
+
 public slots:
+  //! Set the ChatLine this MarkerLineItem is associated to
+  void setChatLine(ChatLine *line);
   void sceneRectChanged(const QRectF &);
 
 private slots:
@@ -45,6 +50,7 @@ private slots:
 private:
   QRectF _boundingRect;
   QBrush _brush;
+  ChatLine *_chatLine;
 };
 
 #endif