libyui-qt
2.53.0
|
Class for the widgets of one YQCustomStatusItemSelector item. More...
#include <YQCustomStatusItemSelector.h>
Signals | |
void | clicked (YQCustomStatusSelectorItemWidget *itemWidget) |
Emitted when the user clicks on the heading toggle to change the status or uses a keyboard operation to do the same. | |
![]() | |
void | selectionChanged (YQSelectorItemWidget *itemWidget, bool selected) |
Public Member Functions | |
YQCustomStatusSelectorItemWidget (YQItemSelector *parent, YItem *item) | |
Constructor. | |
virtual | ~YQCustomStatusSelectorItemWidget () |
Destructor. | |
void | setStatusIcon () |
Set the correct status icon according to the status of this item. | |
![]() | |
YQSelectorItemWidget (YQItemSelector *parent, YItem *item) | |
Constructor. | |
virtual | ~YQSelectorItemWidget () |
Destructor. | |
virtual void | createWidgets () |
Create the subwidgets. More... | |
virtual void | setSelected (bool sel=true) |
Select the appropriate widget according to the parent's selection policy (single or multi selection). | |
virtual bool | selected () const |
Return 'true' if this item is selected, 'false' otherwise. | |
bool | singleSelection () const |
Return 'true' if the parent YItemSelector has single selection (1-of-n). | |
bool | multiSelection () const |
Return 'true' if the parent YItemSelector has multi selection (n-of-m). | |
QAbstractButton * | headingToggle () const |
Return the widget that handles the selection: Either a QRadioButton or a QCheckBox. More... | |
YQItemSelector * | parent () const |
QLabel * | descriptionLabel () const |
QLabel * | iconLabel () const |
YItem * | item () const |
Protected Slots | |
void | slotClicked () |
Forwarder slot from the heading toggle to this class. | |
![]() | |
void | slotSelectionChanged (bool selected) |
Protected Member Functions | |
virtual QAbstractButton * | createHeadingToggle (const std::string &label, QWidget *parent) |
Create the appropriate toggle button for this item and connect it to appropriate slots. More... | |
void | setStatusIcon (QAbstractButton *toggle) |
Set the correct status icon according to the status of this item. | |
virtual int | itemDescriptionIndent () const |
Return the amount of indentation in pixels for the description text. More... | |
![]() | |
virtual void | createWidgets (const std::string &label, const std::string &description, const std::string &iconName, bool selected=false) |
Additional Inherited Members | |
![]() | |
YQItemSelector * | _parent |
YItem * | _item |
QHBoxLayout * | _hBox |
QVBoxLayout * | _vBox |
QAbstractButton * | _headingToggle |
QLabel * | _descriptionLabel |
QLabel * | _iconLabel |
Class for the widgets of one YQCustomStatusItemSelector item.
Definition at line 119 of file YQCustomStatusItemSelector.h.
|
protectedvirtual |
Create the appropriate toggle button for this item and connect it to appropriate slots.
Reimplemented from YQCustomStatusSelectorItemWidget.
Reimplemented from YQSelectorItemWidget.
Definition at line 173 of file YQCustomStatusItemSelector.cc.
|
protectedvirtual |
Return the amount of indentation in pixels for the description text.
Reimplemented from YQCustomStatusSelectorItemWidget.
Reimplemented from YQSelectorItemWidget.
Definition at line 220 of file YQCustomStatusItemSelector.cc.