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
00037 class KDEGAMES_EXPORT KChatBaseItemDelegate : public QAbstractItemDelegate
00038 {
00039 Q_OBJECT
00040
00041 public:
00045 explicit KChatBaseItemDelegate(QObject *parent = 0);
00046
00050 virtual ~KChatBaseItemDelegate();
00051
00058 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option,
00059 const QModelIndex &index) const;
00060
00061 void paint(QPainter *painter,
00062 const QStyleOptionViewItem &option,
00063 const QModelIndex &index,
00064 const QString& sender,
00065 const QString& message) const;
00072 virtual QSize sizeHint(const QStyleOptionViewItem &option,
00073 const QModelIndex &index ) const;
00074
00075 virtual QSize sizeHint(const QStyleOptionViewItem &option,
00076 const QModelIndex &index, const QString& sender,
00077 const QString& message) const;
00078 };
00079
00080 #endif