class KListBox


Definition#include <klistbox.h>
InheritsQListBox
Annotated List
Files
Globals
Hierarchy
Index
Main

Public Methods

Signals


Detailed Description

Extends the functionality of QListBox to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link.

There is a new signal executed(). It gets connected to either QListBox::clicked() or QListBox::doubleClicked() depending on the KDE wide Single Click/Double Click settings. It is strongly recomended that you use this signal instead of the above mentioned. This way you donīt need to care about the current settings. If you want to get informed when the user selects something connect to the QListBox::selectionChanged() signal.

 KListBox ( QWidget *parent = 0, const char *name = 0, WFlags f = 0 )

void  executed ( QListBoxItem *item )

[signal]

Emitted whenever the user executes an listbox item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Note that you may not delete any QListBoxItem objects in slots connected to this signal.

Parameters:
itemis the pointer to the executed listbox item.

void  executed ( QListBoxItem *item, const QPoint &pos )

[signal]

Emitted whenever the user executes an listbox item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Note that you may not delete any QListBoxItem objects in slots connected to this signal.

Parameters:
itemis the pointer to the executed listbox item.
posis the position where the user has clicked

void  doubleClicked ( QListBoxItem *item, const QPoint &pos )

[signal]

This signal gets emitted whenever the user double clicks into the listbox.

Note that you may not delete any QListBoxItem objects in slots connected to this signal.

This signal is more or less here for the sake of completeness. You should normally not need to use this. In most cases itīs better to use executed() instead.

Parameters:
itemThe pointer to the clicked listbox item.
posThe position where the user has clicked.

protected slots: void  slotOnItem ( QListBoxItem *item )

[signal]

void  slotOnViewport ()

[signal]

void  slotSettingsChanged (int)

[signal]

void  slotAutoSelect ()

[signal]

Auto selection happend.

protected: void  emitExecute ( QListBoxItem *item, const QPoint &pos )

[signal]

void  keyPressEvent (QKeyEvent *e)

[virtual signal]

void  focusOutEvent ( QFocusEvent *fe )

[virtual signal]

void  leaveEvent ( QEvent *e )

[virtual signal]

void  contentsMousePressEvent ( QMouseEvent *e )

[virtual signal]

void  contentsMouseDoubleClickEvent ( QMouseEvent *e )

[virtual signal]

private slots: void  slotMouseButtonClicked ( int btn, QListBoxItem *item, const QPoint &pos )

[signal]