• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames/libkdegamesprivate

  • sources
  • kde-4.14
  • kdegames
  • libkdegames
  • libkdegamesprivate
kchatbaseitemdelegate.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE games library
3  Copyright (C) 2007 Gael de Chalendar (aka Kleag) <kleag@free.fr>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef __KCHATBASEITEMDELEGATE_H__
20 #define __KCHATBASEITEMDELEGATE_H__
21 
22 #include <QtGui/QAbstractItemDelegate>
23 
24 #include "libkdegamesprivate_export.h"
25 
37 class KDEGAMESPRIVATE_EXPORT KChatBaseItemDelegate : public QAbstractItemDelegate
38 {
39  Q_OBJECT
40 
41  public:
45  explicit KChatBaseItemDelegate(QObject *parent = 0);
46 
50  virtual ~KChatBaseItemDelegate();
51 
58  virtual void paint(QPainter *painter, const QStyleOptionViewItem &option,
59  const QModelIndex &index) const;
60 
61  void paint(QPainter *painter,
62  const QStyleOptionViewItem &option,
63  const QModelIndex &index,
64  const QString& sender,
65  const QString& message) const;
72  virtual QSize sizeHint(const QStyleOptionViewItem &option,
73  const QModelIndex &index ) const;
74 
75  virtual QSize sizeHint(const QStyleOptionViewItem &option,
76  const QModelIndex &index, const QString& sender,
77  const QString& message) const;
78 };
79 
80 #endif
QModelIndex
KDEGAMESPRIVATE_EXPORT
#define KDEGAMESPRIVATE_EXPORT
Definition: libkdegamesprivate_export.h:46
KChatBaseItemDelegate
A delegate (see the Qt Model/View module for details) to paint the lines of the KChatBase list model ...
Definition: kchatbaseitemdelegate.h:37
libkdegamesprivate_export.h
QStyleOptionViewItem
QObject
QPainter
QString
QAbstractItemDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
QSize
QAbstractItemDelegate::sizeHint
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const =0
QAbstractItemDelegate
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames/libkdegamesprivate

Skip menu "libkdegames/libkdegamesprivate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal