KVIrc 5.2.0
Developer APIs
Public Member Functions | List of all members
FileTransferItemDelegate Class Reference

#include <FileTransferWindow.h>

+ Inheritance diagram for FileTransferItemDelegate:

Public Member Functions

 FileTransferItemDelegate (QAbstractItemView *pWidget=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
 ~FileTransferItemDelegate ()
 
- Public Member Functions inherited from KviTalIconAndRichTextItemDelegate
 KviTalIconAndRichTextItemDelegate (QAbstractItemView *pWidget=nullptr)
 Constructs the icon and rich text item delegate object.
 
void paint (QPainter *pPainter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Paints the view.
 
void setDefaultIcon (const QPixmap &oPix)
 
void setDefaultIcon (QPixmap *pPix)
 Sets the default icon.
 
void setIconSize (const QSize &s)
 Set the size of the icons. Should be set in the view constructor.
 
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.
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Returns the size hint for the view.
 
 ~KviTalIconAndRichTextItemDelegate ()
 Destroys the icon and rich text item delegate object.
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ FileTransferItemDelegate()

FileTransferItemDelegate::FileTransferItemDelegate ( QAbstractItemView *  pWidget = nullptr)
inline

◆ ~FileTransferItemDelegate()

FileTransferItemDelegate::~FileTransferItemDelegate ( )
inline

Member Function Documentation

◆ paint()

void FileTransferItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

◆ sizeHint()

QSize FileTransferItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

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