kchatbaseitemdelegate.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the KDE games library
00003     Copyright (C) 2007 Gael de Chalendar (aka Kleag) <kleag@free.fr>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
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

Generated on Sun Mar 16 08:02:52 2008 for Libkdegames by  doxygen 1.5.3