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 virtual void updateCustomStatusIndicator(YItem *item)
Update the status indicator (the status icon) for an item.
void itemClicked(YQCustomStatusSelectorItemWidget *itemWidget)
Cycle the status of an item and report the click to the calling application.
virtual void addItem(YItem *item)
Add an item.
const QIcon & statusIcon(int status) const
Return the status icon for the specified status.
YQCustomStatusItemSelector(YWidget *parent, const YItemCustomStatusVector &customStates)
Constructor.
virtual void activateItem(YItem *item)
Activate selected item.
void preloadStatusIcons()
Preload and cache the status icons.
ItemSelector widget with support for custom status values, not just 0 or 1.
virtual ~YQCustomStatusItemSelector()
Destructor.
virtual void selectItem(YItem *item, bool selected=true)
Select or deselect an item.