Chatline -> ChatLine
[quassel.git] / src / qtui / chatline.h
index 792563e..8531f39 100644 (file)
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#ifndef _CHATLINE_H_
-#define _CHATLINE_H_
+#ifndef CHATLINE_H_
+#define CHATLINE_H_
 
 #include <QGraphicsItem>
 
-#include "message.h"
+#include "messagemodel.h"
+
+class ChatItem;
 
 class ChatLine : public QGraphicsItem {
 
   public:
-    ChatLine(const QPersistentModelIndex &, QGraphicsItem *parent = 0);
+    ChatLine(const QModelIndex &tempIndex, QGraphicsItem *parent = 0);
     virtual ~ChatLine();
 
     virtual QRectF boundingRect () const;
@@ -43,7 +45,7 @@ class ChatLine : public QGraphicsItem {
     //bool sceneEvent ( QEvent * event );
 
   private:
-    QPersistentModelIndex _index;
+    ChatItem *_timestampItem, *_senderItem, *_contentsItem;
 };
 
 #endif