class KEditListBox |
|
An editable listbox
This class provides a editable listbox ;-), this means a listbox which is accompanied by a line edit to enter new items into the listbox and pushbuttons to add and remove items from the listbox and two buttons to move items up and down.
|
|
Create an editable listbox. |
|
Create an editable listbox.
The same as the other constructor, additionally it takes title, which will be the title of the groupbox around the listbox. |
|
Create an editable listbox.
Deprecated If checkAtEntering is true, after every character you type in the line edit KEditListBox will enable or disable the Add-button, depending whether the current content of the line edit is already in the listbox. Maybe this can become a performance hit with large lists on slow machines. If checkAtEntering is false, it will be checked if you press the Add-button. It is not possible to enter items twice into the listbox. |
|
Create an editable listbox.
Deprecated The same as the other constructor, additionally it takes title, which will be the title of the frame around the listbox. |
|
Another constructor, which allows to use a custom editing widget
instead of the standard KLineEdit widget. E.g. you can use a
KUrlRequester or a KComboBox as input widget. The custom
editor must consist of a lineedit and optionally another widget that
is used as representation. A KComboBox or a KUrlRequester have a
KLineEdit as child-widget for example, so the KComboBox is used as
the representation widget.
See also KUrlRequester.customEditor() |
|
|
Return a pointer to the Add button |
|
|
This signal is emitted when the user adds a new string to the list, the parameter is the added string. |
|
Returns which buttons are visible |
|
|
Returns true if check at entering is enabled. |
|
Clears both the listbox and the line edit. |
|
See QListBox.count() |
|
See QListBox.currentItem() |
|
See QListBox.currentText() |
|
Return a pointer to the Down button |
|
|
See QListBox.insertStrList() |
|
See QListBox.insertStringList() |
|
Returns a stringlist of all items in the listbox |
|
Return a pointer to the embedded KLineEdit. |
|
Return a pointer to the embedded QListView. |
|
|
|
Return a pointer to the Remove button |
|
|
This signal is emitted when the user removes a string from the list, the parameter is the removed string. |
|
Specifies which buttons should be visible |
|
If check is true, after every character you type in the line edit KEditListBox will enable or disable the Add-button, depending whether the current content of the line edit is already in the listbox. Maybe this can become a performance hit with large lists on slow machines. If check is false, it will be checked if you press the Add-button. It is not possible to enter items twice into the listbox. Default is false. |
|
Clears the listbox and sets the contents to items |
|
See QListBox.text() |
|
|
Return a pointer to the Up button |
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter, or in setButtons.
Add | - 0x0001 | - | ||
Remove | - 0x0002 | - | ||
UpDown | - 0x0004 | - | ||
All | - Add|Remove|UpDown | - |