KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | List of all members
KviTopicListBoxItemDelegate Class Reference

#include <KviTopicWidget.h>

+ Inheritance diagram for KviTopicListBoxItemDelegate:

Public Member Functions

 KviTopicListBoxItemDelegate (QAbstractItemView *pWidget=0)
 
void paint (QPainter *pPainter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
 ~KviTopicListBoxItemDelegate ()
 
- Public Member Functions inherited from KviTalIconAndRichTextItemDelegate
 KviTalIconAndRichTextItemDelegate (QAbstractItemView *pWidget=0)
 Constructs the icon and rich text item delegate object. More...
 
void paint (QPainter *pPainter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Paints the view. More...
 
void setDefaultIcon (QPixmap *pPix)
 Sets the default icon. More...
 
void setDefaultIcon (const QPixmap &oPix)
 
void setIconSize (const QSize &s)
 Set the size of the icons. Should be set in the view constructor. More...
 
void setMinimumSize (const QSize &s)
 Set the absolute minimum size of the items. Should be set in the view constructor as QListWidget caches the size hints and works really hard to keep them unchanged. More...
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 Returns the size hint for the view. More...
 
 ~KviTalIconAndRichTextItemDelegate ()
 Destroys the icon and rich text item delegate object. More...
 

Additional Inherited Members

- Protected Attributes inherited from KviTalIconAndRichTextItemDelegate
QPixmap m_oDefaultPix
 
QSize m_oIconSize
 
QSize m_oMinimumSize
 
QAbstractItemView * m_pParent
 

Constructor & Destructor Documentation

KviTopicListBoxItemDelegate::KviTopicListBoxItemDelegate ( QAbstractItemView *  pWidget = 0)
KviTopicListBoxItemDelegate::~KviTopicListBoxItemDelegate ( )
default

Member Function Documentation

void KviTopicListBoxItemDelegate::paint ( QPainter *  pPainter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
QSize KviTopicListBoxItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

The documentation for this class was generated from the following files: