X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodel.h;h=a1e2c6929198a9196f4e672d06f37961acabe89e;hp=779b5f2a19fbfd31d645ac0609ee5e1f7be84345;hb=3197b8b309f09ac1f4db54fa8fa819e33b87383e;hpb=b9e68646b3404fd99adb94773821467da98b0c7b diff --git a/src/qtui/chatlinemodel.h b/src/qtui/chatlinemodel.h index 779b5f2a..a1e2c692 100644 --- a/src/qtui/chatlinemodel.h +++ b/src/qtui/chatlinemodel.h @@ -34,10 +34,24 @@ class ChatLineModel : public MessageModel { 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 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