X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodel.h;h=c089cb408872f7129874fdf20e569c6e4d48ebcf;hb=1489728cd358f6bf7151bcdd87b9ea2cbdff7bec;hp=c21d1c3b6cd56c6fd69ad17ba600dd8a64a19a69;hpb=5199330f0b249b20c27cd372d995909f97433786;p=quassel.git diff --git a/src/qtui/chatlinemodel.h b/src/qtui/chatlinemodel.h index c21d1c3b..c089cb40 100644 --- a/src/qtui/chatlinemodel.h +++ b/src/qtui/chatlinemodel.h @@ -31,12 +31,16 @@ class ChatLineModel : public MessageModel { public: enum ChatLineRole { - MsgLabelRole = MessageModel::UserRole, + WrapListRole = MessageModel::UserRole, + MsgLabelRole, SelectedBackgroundRole }; ChatLineModel(QObject *parent = 0); + typedef ChatLineModelItem::Word Word; + typedef ChatLineModelItem::WrapList WrapList; + protected: // virtual MessageModelItem *createMessageModelItem(const Message &); @@ -54,9 +58,17 @@ protected: virtual inline void removeAllMessages() { _messageList.clear(); } virtual Message takeMessageAt(int i); +protected slots: + virtual void styleChanged(); + private: QList _messageList; }; +QDataStream &operator<<(QDataStream &out, const ChatLineModel::WrapList); +QDataStream &operator>>(QDataStream &in, ChatLineModel::WrapList &); + +Q_DECLARE_METATYPE(ChatLineModel::WrapList) + #endif