class KExtendableItemDelegate |
|
|
Create a new KExtendableItemDelegate that belongs to parent. In contrast to generic QAbstractItemDelegates, an instance of this class can only ever be the delegate for one instance of af QAbstractItemView subclass. |
|
Close all extenders and delete all extender widgets. |
|
Close the extender that logically belongs to index from the view. The extender widget will be deleted. |
|
Return the pixmap that is displayed to contract an item. |
|
Insert the extender that logically belongs to index into the view. If you need a parent for the extender at construction time, use the itemview's viewport(). The extender will be reparented and resized to the viewport by this function. |
|
Return the pixmap that is displayed to extend an item. |
|
This signal indicates that the item at index was extended with extender. |
|
This signal indicates that the extender belonging to index has emitted the destroyed() signal. |
|
Reimplement this function to fine-tune the position of the extender. option.rect will be a rectangle that is as wide as the viewport and as high as the usual item height plus the extender size hint's height. Its upper left corner will be at the upper left corner of the usual item. You can place the returned rectangle of this function anywhere inside that area. |
|
Return whether there is an extender that belongs to index. |
|
Re-implemented for internal reasons. API not affected. |
|
The pixmap that is displayed to contract an item. pixmap must have the same size as the pixmap in setExtendPixmap. |
|
The pixmap that is displayed to extend an item. pixmap must have the same size as the pixmap in setContractPixmap. |
|
Re-implemented for internal reasons. API not affected. |
|
Reimplement this function to adjust the internal geometry of the extender. The external geometry of the extender will be set by the delegate. |
ShowExtensionIndicatorRole | - Qt::UserRole+200 | - |