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