#include <tdelistbox.h>
Signals | |
void | executed (TQListBoxItem *item) |
void | executed (TQListBoxItem *item, const TQPoint &pos) |
void | doubleClicked (TQListBoxItem *item, const TQPoint &pos) |
Public Member Functions | |
TDEListBox (TQWidget *parent=0, const char *name=0, WFlags f=0) | |
Protected Slots | |
void | slotOnItem (TQListBoxItem *item) |
void | slotOnViewport () |
void | slotSettingsChanged (int) |
void | slotAutoSelect () |
Protected Attributes | |
bool | m_bUseSingle |
bool | m_bChangeCursorOverItem |
TQListBoxItem * | m_pCurrentItem |
TQTimer * | m_pAutoSelect |
int | m_autoSelectDelay |
Detailed Description
A variant of TQListBox that honors KDE's system-wide settings.
Extends the functionality of TQListBox 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 TQListBox::clicked() or TQListBox::doubleClicked() depending on the KDE wide Single Click/Double Click settings. It is strongly recommended 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 TQListBox::selectionChanged() signal.
Definition at line 40 of file tdelistbox.h.
Member Function Documentation
◆ doubleClicked
|
signal |
This signal gets emitted whenever the user double clicks into the listbox.
- Parameters
-
item The pointer to the clicked listbox item. pos The position where the user has clicked.
Note that you may not delete any TQListBoxItem 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.
◆ executed [1/2]
|
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.
- Parameters
-
item is the pointer to the executed listbox item.
Note that you may not delete any TQListBoxItem objects in slots connected to this signal.
◆ executed [2/2]
|
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.
- Parameters
-
item is the pointer to the executed listbox item. pos is the position where the user has clicked
Note that you may not delete any TQListBoxItem objects in slots connected to this signal.
◆ slotAutoSelect
|
protectedslot |
Auto selection happend.
Definition at line 109 of file tdelistbox.cpp.
The documentation for this class was generated from the following files: