X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodelitem.h;h=d4979cdf1b55d75bde29175354301bae7e3f3dd8;hp=8cf1fa61aae47fa9b2e173b0d779b97a28899eba;hb=86831c8857f0a729580cee547e10c9621d50c780;hpb=946e79e0243dda74433016060f12abc65883f243 diff --git a/src/qtui/chatlinemodelitem.h b/src/qtui/chatlinemodelitem.h index 8cf1fa61..d4979cdf 100644 --- a/src/qtui/chatlinemodelitem.h +++ b/src/qtui/chatlinemodelitem.h @@ -21,19 +21,27 @@ #ifndef CHATLINEMODELITEM_H_ #define CHATLINEMODELITEM_H_ -#include - -#include "chatlinemodel.h" -#include "uistyle.h" +#include "messagemodel.h" class ChatLineModelItemPrivate; class ChatLineModelItem : public MessageModelItem { public: ChatLineModelItem(const Message &); + ChatLineModelItem(const ChatLineModelItem &other); ~ChatLineModelItem(); + virtual QVariant data(int column, int role) const; + /// Used to store information about words to be used for wrapping + struct Word { + quint16 start; + qreal endX; + qreal width; + qreal trailing; + }; + typedef QVector WrapList; + private: ChatLineModelItemPrivate *_data; };