libyui-qt
2.46.13
|
Public Member Functions | |
YQComboBox (YWidget *parent, const std::string &label, bool editable) | |
Constructor. | |
~YQComboBox () | |
Destructor. | |
virtual void | addItem (YItem *item) |
Add one item. More... | |
virtual void | deleteAllItems () |
Delete all items. More... | |
virtual void | setLabel (const std::string &label) |
Change the label text. More... | |
virtual void | setValidChars (const std::string &validChars) |
Change the valid input characters. More... | |
virtual void | setInputMaxLength (int numberOfChars) |
Specify the amount of characters which can be inserted. More... | |
bool | isValidText (const QString &txt) const |
Returns 'true' if the given text is valid according to the current setting of ValidChars. | |
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. | |
Protected Slots | |
void | slotSelected (int i) |
Tells the ui that an item has been selected. More... | |
void | textChanged (QString) |
Tells the ui that the user has edited the text ( if the 'editable' option is set ). More... | |
Protected Member Functions | |
virtual std::string | text () |
Return this ComboBox's current value as text. More... | |
virtual void | setText (const std::string &newText) |
Set this ComboBox's current value as text. More... | |
Protected Attributes | |
YQWidgetCaption * | _caption |
QComboBox * | _qt_comboBox |
QY2CharValidator * | _validator |
Definition at line 37 of file YQComboBox.h.
|
virtual |
Add one item.
This widget assumes ownership of the item object and will delete it in its destructor.
Reimplemented from YComboBox.
Definition at line 118 of file YQComboBox.cc.
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 145 of file YQComboBox.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 240 of file YQComboBox.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 234 of file YQComboBox.cc.
|
virtual |
Set enabled / disabled state.
Reimplemented from YWidget.
Definition at line 252 of file YQComboBox.cc.
|
virtual |
Specify the amount of characters which can be inserted.
Reimplemented from YComboBox.
Definition at line 227 of file YQComboBox.cc.
|
virtual |
Change the label text.
Reimplemented from YSelectionWidget.
Definition at line 154 of file YQComboBox.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 246 of file YQComboBox.cc.
|
protectedvirtual |
Set this ComboBox's current value as text.
Called internally whenever the content is to change programmatically. Don't call setValue() or selectItem() from here.
Implemented from YComboBox.
Definition at line 96 of file YQComboBox.cc.
|
virtual |
Change the valid input characters.
Reimplemented from YComboBox.
Definition at line 161 of file YQComboBox.cc.
|
protectedslot |
Tells the ui that an item has been selected.
This is only interesting if the `notify option is set.
Definition at line 206 of file YQComboBox.cc.
|
protectedvirtual |
Return this ComboBox's current value as text.
Called internally from value(), selectedItem() and related.
Implemented from YComboBox.
Definition at line 90 of file YQComboBox.cc.
|
protectedslot |
Tells the ui that the user has edited the text ( if the 'editable' option is set ).
This is only interesting if the `notify option is set.
Definition at line 220 of file YQComboBox.cc.