libkdegames
kchatbaseitemdelegate.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __KCHATBASEITEMDELEGATE_H__
00020 #define __KCHATBASEITEMDELEGATE_H__
00021
00022 #include <QtGui/QAbstractItemDelegate>
00023
00024 #include <libkdegames_export.h>
00025
00035 class KDEGAMES_EXPORT KChatBaseItemDelegate : public QAbstractItemDelegate
00036 {
00037 Q_OBJECT
00038
00039 public:
00043 explicit KChatBaseItemDelegate(QObject *parent = 0);
00044
00048 virtual ~KChatBaseItemDelegate();
00049
00056 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option,
00057 const QModelIndex &index) const;
00058
00059 void paint(QPainter *painter,
00060 const QStyleOptionViewItem &option,
00061 const QModelIndex &index,
00062 const QString& sender,
00063 const QString& message) const;
00070 virtual QSize sizeHint(const QStyleOptionViewItem &option,
00071 const QModelIndex &index ) const;
00072
00073 virtual QSize sizeHint(const QStyleOptionViewItem &option,
00074 const QModelIndex &index, const QString& sender,
00075 const QString& message) const;
00076 };
00077
00078 #endif