libyui-qt
2.46.13
|
Signals | |
void | valueChanged () |
Emitted upon when an item changes its state. | |
Public Member Functions | |
YQMultiSelectionBox (YWidget *parent, const std::string &label) | |
Constructor. | |
~YQMultiSelectionBox () | |
Destructor. | |
virtual void | setLabel (const std::string &label) |
Change the label text. More... | |
virtual void | addItem (YItem *item) |
Add an item. More... | |
virtual void | selectItem (YItem *item, bool selected=true) |
Select or deselect an item. More... | |
virtual void | deselectAllItems () |
Deselect all items. More... | |
virtual void | deleteAllItems () |
Delete all items. More... | |
virtual YItem * | currentItem () |
Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard focus. More... | |
virtual void | setCurrentItem (YItem *item) |
Set the keyboard focus to the specified item. More... | |
virtual void | setEnabled (bool enabled) |
Set enabled/disabled state. More... | |
virtual int | preferredWidth () |
Preferred width of the widget. More... | |
virtual int | preferredHeight () |
Preferred height of the widget. More... | |
virtual void | setSize (int newWidth, int newHeight) |
Set the new size of the widget. More... | |
virtual bool | setKeyboardFocus () |
Accept the keyboard focus. | |
Protected Slots | |
void | slotSelected () |
Send SelectionChanged event if opt( notify) is set. | |
void | slotValueChanged () |
Send ValueChanged event if opt( notify) is set. | |
void | slotItemChanged (QTreeWidgetItem *, int) |
Protected Member Functions | |
YQMultiSelectionBoxItem * | findItem (YItem *item) |
Find the counterpart of 'item'. More... | |
Protected Attributes | |
YQWidgetCaption * | _caption |
QTreeWidget * | _qt_listView |
Definition at line 38 of file YQMultiSelectionBox.h.
|
virtual |
Add an item.
Reimplemented from YSelectionWidget.
Definition at line 104 of file YQMultiSelectionBox.cc.
|
virtual |
Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard focus.
Reimplemented from YMultiSelectionBox.
Definition at line 165 of file YQMultiSelectionBox.cc.
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 155 of file YQMultiSelectionBox.cc.
|
virtual |
Deselect all items.
Reimplemented from YSelectionWidget.
Definition at line 135 of file YQMultiSelectionBox.cc.
|
protected |
Find the counterpart of 'item'.
Return 0 if there is none.
Definition at line 310 of file YQMultiSelectionBox.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 250 of file YQMultiSelectionBox.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 241 of file YQMultiSelectionBox.cc.
|
virtual |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 124 of file YQMultiSelectionBox.cc.
|
virtual |
Set the keyboard focus to the specified item.
0 means clear the keyboard focus.
Reimplemented from YMultiSelectionBox.
Definition at line 204 of file YQMultiSelectionBox.cc.
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 232 of file YQMultiSelectionBox.cc.
|
virtual |
Change the label text.
Reimplemented from YSelectionWidget.
Definition at line 96 of file YQMultiSelectionBox.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 262 of file YQMultiSelectionBox.cc.