digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::DWItemDelegatePool Class Reference

Public Types

enum  UpdateWidgetsEnum { UpdateWidgets = 0 , NotUpdateWidgets }
 

Public Member Functions

 DWItemDelegatePool (DWItemDelegate *const delegate)
 Creates a new ItemDelegatePool.
 
QList< QWidget * > findWidgets (const QPersistentModelIndex &index, const QStyleOptionViewItem &option, UpdateWidgetsEnum updateWidgets=UpdateWidgets) const
 Returns the widget associated to index and widget.
 
void fullClear ()
 
QList< QWidget * > invalidIndexesWidgets () const
 

Friends

class DWItemDelegate
 
class DWItemDelegatePrivate
 

Constructor & Destructor Documentation

◆ DWItemDelegatePool()

Digikam::DWItemDelegatePool::DWItemDelegatePool ( DWItemDelegate *const  delegate)
explicit
Parameters
delegatethe ItemDelegate for this pool.

Member Function Documentation

◆ findWidgets()

QList< QWidget * > Digikam::DWItemDelegatePool::findWidgets ( const QPersistentModelIndex &  index,
const QStyleOptionViewItem &  option,
UpdateWidgetsEnum  updateWidgets = UpdateWidgets 
) const
Parameters
indexThe index to search into.
optiona QStyleOptionViewItem.
updateWidgetsa flag to force to update widgets.
Returns
A QList of the pointers to the widgets found.