26 #ifndef YQCustomStatusItemSelector_h
27 #define YQCustomStatusItemSelector_h
29 #include "YQItemSelector.h"
51 const YItemCustomStatusVector & customStates );
63 virtual void addItem( YItem * item );
70 virtual void selectItem( YItem * item,
bool selected =
true );
110 QList<QIcon> _statusIcons;
182 #endif // YQCustomStatusItemSelector_h
ItemSelector widget with support for custom status values, not just 0 or 1.
virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator (the status icon) for an item.
virtual ~YQCustomStatusItemSelector()
Destructor.
const QIcon & statusIcon(int status) const
Return the status icon for the specified status.
void preloadStatusIcons()
Preload and cache the status icons.
virtual void addItem(YItem *item)
Add an item.
virtual void activateItem(YItem *item)
Activate selected item.
void itemClicked(YQCustomStatusSelectorItemWidget *itemWidget)
Cycle the status of an item and report the click to the calling application.
virtual void selectItem(YItem *item, bool selected=true)
Select or deselect an item.
YQCustomStatusItemSelector(YWidget *parent, const YItemCustomStatusVector &customStates)
Constructor.
- src
- YQCustomStatusItemSelector.h