libyui-qt  2.47.1.1
YQSelectionBox Class Reference
Inheritance diagram for YQSelectionBox:
Collaboration diagram for YQSelectionBox:

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
 

Detailed Description

Definition at line 39 of file YQSelectionBox.h.

Member Function Documentation

void YQSelectionBox::addItem ( YItem *  item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

Definition at line 119 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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

bool YQSelectionBox::eventFilter ( QObject *  obj,
QEvent *  ev 
)
virtual

Event filter.

Reimplemented from QWidget.

Definition at line 270 of file YQSelectionBox.cc.

Here is the call graph for this function:

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 ( )
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.

void YQSelectionBox::returnImmediately ( )
protectedslot

Return immediately.

This is only relevant if opt(notify ) is set.

Definition at line 363 of file YQSelectionBox.cc.

Here is the call graph for this function:

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::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.

Here is the call graph for this function:

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::slotSelectionChanged ( )
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.

Here is the call graph for this function:


The documentation for this class was generated from the following files: