kopete/kopete
emoticonthemedelegate.h
Go to the documentation of this file.00001 #ifndef EMOTICONTHEMEDELEGATE_H 00002 #define EMOTICONTHEMEDELEGATE_H 00003 00004 /* 00005 emoticonthemedelegate - Kopete Emoticon Theme Delegate 00006 00007 Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net> 00008 00009 Kopete (c) 2007 by the Kopete developers <kopete-devel@kde.org> 00010 00011 ************************************************************************* 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ************************************************************************* 00019 */ 00020 00021 #include <QAbstractItemDelegate> 00022 00023 class EmoticonThemeDelegate : public QAbstractItemDelegate 00024 { 00025 Q_OBJECT 00026 public: 00027 EmoticonThemeDelegate(QObject *parent = 0); 00028 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; 00029 QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; 00030 }; 00031 00032 #endif
KDE 4.0 API Reference