libyui-qt
Loading...
Searching...
No Matches
YQCustomStatusSelectorItemWidget Class Reference

#include <YQCustomStatusItemSelector.h>

Inheritance diagram for YQCustomStatusSelectorItemWidget:
Collaboration diagram for YQCustomStatusSelectorItemWidget:

Signals

void clicked (YQCustomStatusSelectorItemWidget *itemWidget)
 
- Signals inherited from YQSelectorItemWidget
void selectionChanged (YQSelectorItemWidget *itemWidget, bool selected)
 

Public Member Functions

 YQCustomStatusSelectorItemWidget (YQItemSelector *parent, YItem *item)
 
virtual ~YQCustomStatusSelectorItemWidget ()
 
void setStatusIcon ()
 
- Public Member Functions inherited from YQSelectorItemWidget
 YQSelectorItemWidget (YQItemSelector *parent, YItem *item)
 
virtual ~YQSelectorItemWidget ()
 
virtual void createWidgets ()
 
virtual void setSelected (bool sel=true)
 
virtual bool selected () const
 
bool singleSelection () const
 
bool multiSelection () const
 
void setFirstItemProperty (bool value=true)
 
void setLabel (const QString &label)
 
QAbstractButton * headingToggle () const
 
YQItemSelectorparent () const
 
QLabel * descriptionLabel () const
 
QLabel * iconLabel () const
 
YItem * item () const
 

Protected Slots

void slotClicked ()
 
- Protected Slots inherited from YQSelectorItemWidget
void slotSelectionChanged (bool selected)
 

Protected Member Functions

virtual QAbstractButton * createHeadingToggle (const std::string &label, QWidget *parent)
 
void setStatusIcon (QAbstractButton *toggle)
 
virtual int itemDescriptionIndent () const
 
- Protected Member Functions inherited from YQSelectorItemWidget
virtual void createWidgets (const std::string &label, const std::string &description, const std::string &iconName, bool selected=false)
 
virtual QAbstractButton * createHeadingToggle (const std::string &label, QWidget *parent)
 
virtual int itemDescriptionIndent () const
 

Additional Inherited Members

- Protected Attributes inherited from YQSelectorItemWidget
YQItemSelector_parent
 
YItem * _item
 
QHBoxLayout * _hBox
 
QVBoxLayout * _vBox
 
QAbstractButton * _headingToggle
 
QLabel * _descriptionLabel
 
QLabel * _iconLabel
 

Detailed Description

Class for the widgets of one YQCustomStatusItemSelector item.

Constructor & Destructor Documentation

◆ YQCustomStatusSelectorItemWidget()

YQCustomStatusSelectorItemWidget::YQCustomStatusSelectorItemWidget ( YQItemSelector parent,
YItem *  item 
)

Constructor.

◆ ~YQCustomStatusSelectorItemWidget()

YQCustomStatusSelectorItemWidget::~YQCustomStatusSelectorItemWidget ( )
virtual

Destructor.

Member Function Documentation

◆ clicked

void YQCustomStatusSelectorItemWidget::clicked ( YQCustomStatusSelectorItemWidget itemWidget)
signal

Emitted when the user clicks on the heading toggle to change the status or uses a keyboard operation to do the same.

◆ createHeadingToggle()

QAbstractButton * YQCustomStatusSelectorItemWidget::createHeadingToggle ( const std::string &  label,
QWidget *  parent 
)
protectedvirtual

Create the appropriate toggle button for this item and connect it to appropriate slots.

Reimplemented from YQCustomStatusSelectorItemWidget.

Reimplemented from YQSelectorItemWidget.

◆ itemDescriptionIndent()

int YQCustomStatusSelectorItemWidget::itemDescriptionIndent ( ) const
protectedvirtual

Return the amount of indentation in pixels for the description text.

Reimplemented from YQCustomStatusSelectorItemWidget.

Reimplemented from YQSelectorItemWidget.

◆ setStatusIcon() [1/2]

void YQCustomStatusSelectorItemWidget::setStatusIcon ( )

Set the correct status icon according to the status of this item.

◆ setStatusIcon() [2/2]

void YQCustomStatusSelectorItemWidget::setStatusIcon ( QAbstractButton *  toggle)
protected

Set the correct status icon according to the status of this item.

◆ slotClicked

void YQCustomStatusSelectorItemWidget::slotClicked ( )
protectedslot

Forwarder slot from the heading toggle to this class.


The documentation for this class was generated from the following files: