X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodelitem.h;h=a4df5203899a3af4d82e5603212b868c5e132fbd;hp=9b5a496691d5d9a588c52b96b70f938ac2347a59;hb=e561e02a8d2f1f009559d17c7b1c66cb6f4e2a5a;hpb=1817c8c8e2437d8aadcc1f07195fa4555cb1c17c diff --git a/src/qtui/chatlinemodelitem.h b/src/qtui/chatlinemodelitem.h index 9b5a4966..a4df5203 100644 --- a/src/qtui/chatlinemodelitem.h +++ b/src/qtui/chatlinemodelitem.h @@ -21,12 +21,16 @@ #ifndef CHATLINEMODELITEM_H_ #define CHATLINEMODELITEM_H_ -#include "messagemodel.h" +#include +#include + +#include "chatlinemodel.h" #include "uistyle.h" class ChatLineModelItem : public MessageModelItem { public: + ChatLineModelItem(const Message &); //virtual ~ChatLineModelItem() {}; @@ -34,13 +38,15 @@ class ChatLineModelItem : public MessageModelItem { virtual bool setData(int column, const QVariant &value, int role); private: + void computeWrapList(); + struct ChatLinePart { QString plainText; UiStyle::FormatList formatList; - }; - ChatLinePart _timestamp, _sender, _contents; + + ChatLineModel::WrapList _wrapList; }; #endif