projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Remove the word boundary cache"
[quassel.git]
/
src
/
qtui
/
chatlinemodel.h
diff --git
a/src/qtui/chatlinemodel.h
b/src/qtui/chatlinemodel.h
index
c21d1c3
..
74f0ace
100644
(file)
--- a/
src/qtui/chatlinemodel.h
+++ b/
src/qtui/chatlinemodel.h
@@
-31,12
+31,16
@@
class ChatLineModel : public MessageModel {
public:
enum ChatLineRole {
public:
enum ChatLineRole {
- MsgLabelRole = MessageModel::UserRole,
+ WrapListRole = MessageModel::UserRole,
+ MsgLabelRole,
SelectedBackgroundRole
};
ChatLineModel(QObject *parent = 0);
SelectedBackgroundRole
};
ChatLineModel(QObject *parent = 0);
+ typedef ChatLineModelItem::Word Word;
+ typedef ChatLineModelItem::WrapList WrapList;
+
protected:
// virtual MessageModelItem *createMessageModelItem(const Message &);
protected:
// virtual MessageModelItem *createMessageModelItem(const Message &);
@@
-58,5
+62,10
@@
private:
QList<ChatLineModelItem> _messageList;
};
QList<ChatLineModelItem> _messageList;
};
+QDataStream &operator<<(QDataStream &out, const ChatLineModel::WrapList);
+QDataStream &operator>>(QDataStream &in, ChatLineModel::WrapList &);
+
+Q_DECLARE_METATYPE(ChatLineModel::WrapList)
+
#endif
#endif