X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline.h;h=792563e1a92830cc07d2f04b0ddf33ebcb0cd4e2;hb=dd90a17f0cbafb646e1916d9b8a1f048331f3111;hp=c16de8057b877a1d0adac4d57fbb5fd226c1e671;hpb=f3fc0324c8860dff6af722dafbeb05fcb69a0c41;p=quassel.git diff --git a/src/qtui/chatline.h b/src/qtui/chatline.h index c16de805..792563e1 100644 --- a/src/qtui/chatline.h +++ b/src/qtui/chatline.h @@ -18,17 +18,32 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef CHATLINE_H_ -#define CHATLINE_H_ +#ifndef _CHATLINE_H_ +#define _CHATLINE_H_ -class Chatline : public MessageItem { +#include + +#include "message.h" + +class ChatLine : public QGraphicsItem { public: - Chatline(const Message &); + ChatLine(const QPersistentModelIndex &, QGraphicsItem *parent = 0); + virtual ~ChatLine(); + + virtual QRectF boundingRect () const; + virtual void paint (QPainter * painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); + //void layout(); + + //void setColumnWidths(int tsColWidth, int senderColWidth, int textColWidth); + + //void myMousePressEvent ( QGraphicsSceneMouseEvent * event ) { qDebug() << "press"; mousePressEvent(event); } - virtual QVariant data(int column, int role) const; - virtual bool setData(int column, const QVariant &value, int role); + protected: + //bool sceneEvent ( QEvent * event ); + private: + QPersistentModelIndex _index; }; #endif