X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodelitem.h;h=d4979cdf1b55d75bde29175354301bae7e3f3dd8;hb=1566f62849f9011656d9111b99f023d694bb8805;hp=864c1d5f19a006cb4ff55846e322beb7b8f0b60f;hpb=af456476e906a564d9faf3381b8bc3111fdb2bbd;p=quassel.git diff --git a/src/qtui/chatlinemodelitem.h b/src/qtui/chatlinemodelitem.h index 864c1d5f..d4979cdf 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 * @@ -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; };