|
QWidget * | _itemContainer |
|
QButtonGroup * | _buttonGroup |
|
QVBoxLayout * | _itemLayout |
|
QMap< YItem *, YQSelectorItemWidget * > | _itemWidgets |
|
◆ YQItemSelector() [1/2]
YQItemSelector::YQItemSelector |
( |
YWidget * | parent, |
|
|
bool | enforceSingleSelection = true ) |
◆ ~YQItemSelector()
YQItemSelector::~YQItemSelector |
( |
| ) |
|
|
virtual |
◆ YQItemSelector() [2/2]
YQItemSelector::YQItemSelector |
( |
YWidget * | parent, |
|
|
const YItemCustomStatusVector & | customStates ) |
|
protected |
Constructor for custom item status values. This is intended for derived classes; this class does not support custom item status values directly.
See YItemSelector and YQCustomStatusItemSelector for more details.
◆ activateItem()
void YQItemSelector::activateItem |
( |
YItem * | item | ) |
|
|
virtual |
Activate selected item. Can be used in tests to simulate user input.
Derived classes are required to implement this.
Reimplemented in YQCustomStatusItemSelector.
◆ addItem()
void YQItemSelector::addItem |
( |
YItem * | item | ) |
|
|
virtual |
◆ addItems()
void YQItemSelector::addItems |
( |
const YItemCollection & | itemCollection | ) |
|
|
virtual |
Add multiple items.
Reimplemented for efficiency from YSelectionWidget.
◆ addItemWidget()
◆ buttonGroup()
QButtonGroup * YQItemSelector::buttonGroup |
( |
| ) |
const |
|
inline |
Return the QButtonGroup that manages exclusive buttons in single selection mode.
◆ deleteAllItems()
void YQItemSelector::deleteAllItems |
( |
| ) |
|
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
◆ deselectAllItems()
void YQItemSelector::deselectAllItems |
( |
| ) |
|
|
virtual |
Deselect all items.
Reimplemented from YSelectionWidget.
◆ deselectOtherItems()
void YQItemSelector::deselectOtherItems |
( |
YItem * | selectedItem | ) |
|
|
protected |
Deselect all items except 'selectedItem'.
◆ init()
void YQItemSelector::init |
( |
| ) |
|
|
protected |
Common initializations for all constructors.
◆ itemContainer()
QWidget * YQItemSelector::itemContainer |
( |
| ) |
const |
|
inline |
Return the QWidget that will accept the item widgets.
◆ preferredHeight()
int YQItemSelector::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
int YQItemSelector::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ selectItem()
void YQItemSelector::selectItem |
( |
YItem * | item, |
|
|
bool | selected = true ) |
|
virtual |
◆ setEnabled()
void YQItemSelector::setEnabled |
( |
bool | enabled | ) |
|
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
◆ setKeyboardFocus()
bool YQItemSelector::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
◆ setSize()
void YQItemSelector::setSize |
( |
int | newWidth, |
|
|
int | newHeight ) |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ shortcutChanged()
void YQItemSelector::shortcutChanged |
( |
| ) |
|
|
virtual |
Notification that some shortcut was changed.
Reimplemented from YSelectionWidget.
◆ slotSelectionChanged
Notification that an item has been selected. This is only relevant if Opt( :notify ) is set.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQItemSelector.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQItemSelector.cc