Temporarily disable topic to make quassel compile again after sputdev merge
[quassel.git] / src / qtui / chatlinemodel.h
index b61bd66..a1e2c69 100644 (file)
@@ -28,16 +28,30 @@ class ChatLineModel : public MessageModel {
 
   public:
     enum ChatLineRole {
-      FormatRole = MessageModel::UserRole
+      WrapListRole = MessageModel::UserRole
     };
 
     ChatLineModel(QObject *parent = 0);
     virtual ~ChatLineModel();
 
+    /// Used to store information about words to be used for wrapping
+    struct Word {
+      quint16 start;
+      qreal width;
+      qreal trailing;
+    };
+
+    typedef QVector<Word> WrapList;
+  
   protected:
     virtual MessageModelItem *createMessageModelItem(const Message &);
 
 };
 
+QDataStream &operator<<(QDataStream &out, const ChatLineModel::WrapList);
+QDataStream &operator>>(QDataStream &in, ChatLineModel::WrapList &);
+
+Q_DECLARE_METATYPE(ChatLineModel::WrapList);
+
 #endif