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. 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. 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 |
|
|
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 |
|
Clears the listbox and sets the contents to items |
|
See QListBox.text() |
|
|
Return a pointer to the Up button |
Add | - | ||
Remove | - | ||
UpDown | - | ||
All | - |