File indexing completed on 2024-09-29 06:39:20
0001 /*************************************************************************** 0002 KsirkChatItem.h - description 0003 ------------------- 0004 begin : Mon Sep 26 2006 0005 copyright : (C) 2006-2007 by Gaƫl de Chalendar (aka Kleag) 0006 email : kleag@free.fr 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either either version 2 0014 of the License, or (at your option) any later version.of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0020 * 02110-1301, USA 0021 ***************************************************************************/ 0022 0023 #ifndef KSIRKCHATDELEGATE_H 0024 #define KSIRKCHATDELEGATE_H 0025 0026 #define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API 0027 #include <libkdegamesprivate/kchatbaseitemdelegate.h> 0028 0029 class KsirkChatDelegate : public KChatBaseItemDelegate 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 explicit KsirkChatDelegate(QObject *parent = nullptr); 0035 ~KsirkChatDelegate() override {} 0036 0037 void paint(QPainter *painter, const QStyleOptionViewItem &option, 0038 const QModelIndex &index) const override; 0039 0040 QSize sizeHint(const QStyleOptionViewItem &option, 0041 const QModelIndex &index ) const override; 0042 0043 QSize sizeHint(const QStyleOptionViewItem &option, 0044 const QModelIndex &index, const QString& sender, 0045 const QString& message) const override; 0046 }; 0047 0048 #endif // KSIRKCHATDELEGATE_H