![]() |
KVIrc 5.2.6
Developer APIs
|
#include <FileTransferWindow.h>
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 () | |
![]() | |
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 | |
![]() | |
QPixmap | m_oDefaultPix |
QSize | m_oIconSize |
QSize | m_oMinimumSize |
QAbstractItemView * | m_pParent |
|
inline |
|
inline |
void FileTransferItemDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index ) const |
References KviFileTransfer::active(), KviFileTransfer::displayPaint(), and p.
QSize FileTransferItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, |
const QModelIndex & | index ) const |