X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodelitem.h;h=8cf1fa61aae47fa9b2e173b0d779b97a28899eba;hb=c7ce9cd32c8fbbdd2d93c20da78a98f32e5b938d;hp=f01b4e1d767c489cc8d37f1a43e59b70d9543334;hpb=3a9668461efb05bd5b24ba5eb741a7f7f75086c9;p=quassel.git diff --git a/src/qtui/chatlinemodelitem.h b/src/qtui/chatlinemodelitem.h index f01b4e1d..8cf1fa61 100644 --- a/src/qtui/chatlinemodelitem.h +++ b/src/qtui/chatlinemodelitem.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,32 +22,20 @@ #define CHATLINEMODELITEM_H_ #include -#include -#include "messagemodel.h" +#include "chatlinemodel.h" #include "uistyle.h" -class ChatLineModelItem : public MessageModelItem { - - public: - ChatLineModelItem(const Message &); - //virtual ~ChatLineModelItem() {}; - - virtual QVariant data(int column, int role) const; - virtual bool setData(int column, const QVariant &value, int role); +class ChatLineModelItemPrivate; - private: - typedef QVector > WrapList; - - void computeWrapList(); - - struct ChatLinePart { - QString plainText; - UiStyle::FormatList formatList; - }; - ChatLinePart _timestamp, _sender, _contents; +class ChatLineModelItem : public MessageModelItem { +public: + ChatLineModelItem(const Message &); + ~ChatLineModelItem(); + virtual QVariant data(int column, int role) const; - WrapList _wrapList; +private: + ChatLineModelItemPrivate *_data; }; #endif