KDEUI
kextendableitemdelegate.h
Go to the documentation of this file.
73 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
103 virtual void updateExtenderGeometry(QWidget *extender, const QStyleOptionViewItem &option, const QModelIndex &index) const;
123 QRect extenderRect(QWidget *extender, const QStyleOptionViewItem &option, const QModelIndex &index) const;
QPixmap contractPixmap()
Return the pixmap that is displayed to contract an item.
Definition kextendableitemdelegate.cpp:446
QPixmap extendPixmap()
Return the pixmap that is displayed to extend an item.
Definition kextendableitemdelegate.cpp:440
void setExtendPixmap(const QPixmap &pixmap)
The pixmap that is displayed to extend an item.
Definition kextendableitemdelegate.cpp:428
void setContractPixmap(const QPixmap &pixmap)
The pixmap that is displayed to contract an item.
Definition kextendableitemdelegate.cpp:434
QRect extenderRect(QWidget *extender, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplement this function to fine-tune the position of the extender.
Definition kextendableitemdelegate.cpp:314
KExtendableItemDelegate(QAbstractItemView *parent)
Create a new KExtendableItemDelegate that belongs to parent.
Definition kextendableitemdelegate.cpp:71
@ ShowExtensionIndicatorRole
Definition kextendableitemdelegate.h:55
void extenderDestroyed(QWidget *extender, const QModelIndex &index)
This signal indicates that the extender belonging to index has emitted the destroyed() signal.
void extenderCreated(QWidget *extender, const QModelIndex &index)
This signal indicates that the item at index was extended with extender.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.