libyui-qt
2.47.1.1
|
Public Member Functions | |
YQSelectionBox (YWidget *parent, const std::string &label) | |
Constructor. | |
virtual | ~YQSelectionBox () |
Destructor. | |
virtual void | setLabel (const std::string &label) |
Change the label text. More... | |
virtual void | addItem (YItem *item) |
Add an item. More... | |
virtual void | addItems (const YItemCollection &itemCollection) |
Add multiple items. 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 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. More... | |
virtual bool | eventFilter (QObject *obj, QEvent *ev) |
Event filter. More... | |
Protected Slots | |
void | slotSelectionChanged () |
Notification that an item has been selected. More... | |
void | slotActivated (QListWidgetItem *item) |
Notification that an item has been activated (double clicked). | |
void | returnDelayed () |
Return after some millseconds delay - collect multiple events. More... | |
void | returnImmediately () |
Return immediately. More... | |
Protected Member Functions | |
void | selectItem (int index) |
Select an item by index. | |
void | addItem (YItem *item, bool batchMode) |
Internal addItem() method that will not do expensive operations in batch mode. | |
Protected Attributes | |
YQWidgetCaption * | _caption |
QListWidget * | _qt_listWidget |
QTimer | _timer |
Definition at line 39 of file YQSelectionBox.h.
|
virtual |
|
virtual |
Add multiple items.
Reimplemented for efficiency from YSelectionWidget.
Definition at line 104 of file YQSelectionBox.cc.
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 217 of file YQSelectionBox.cc.
|
virtual |
Deselect all items.
Reimplemented from YSelectionWidget.
Definition at line 193 of file YQSelectionBox.cc.
|
virtual |
Event filter.
Reimplemented from QWidget.
Definition at line 270 of file YQSelectionBox.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 236 of file YQSelectionBox.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 227 of file YQSelectionBox.cc.
|
protectedslot |
Return after some millseconds delay - collect multiple events.
This is only relevant if opt(
notify ) is set.
Definition at line 386 of file YQSelectionBox.cc.
|
protectedslot |
Return immediately.
This is only relevant if opt(
notify ) is set.
Definition at line 363 of file YQSelectionBox.cc.
|
virtual |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 166 of file YQSelectionBox.cc.
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 253 of file YQSelectionBox.cc.
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 262 of file YQSelectionBox.cc.
|
virtual |
Change the label text.
Reimplemented from YSelectionWidget.
Definition at line 97 of file YQSelectionBox.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 247 of file YQSelectionBox.cc.
|
protectedslot |
Notification that an item has been selected.
This is only relevant if opt(
notify ) is set.
Definition at line 311 of file YQSelectionBox.cc.