|
| virtual std::string | text () |
| |
| virtual void | setText (const std::string &newText) |
| |
◆ YQComboBox()
| YQComboBox::YQComboBox |
( |
YWidget * |
parent, |
|
|
const std::string & |
label, |
|
|
bool |
editable |
|
) |
| |
◆ ~YQComboBox()
| YQComboBox::~YQComboBox |
( |
| ) |
|
◆ addItem()
| void YQComboBox::addItem |
( |
YItem * |
item | ) |
|
|
virtual |
Add one item. This widget assumes ownership of the item object and will delete it in its destructor.
Reimplemented from YComboBox.
◆ deleteAllItems()
| void YQComboBox::deleteAllItems |
( |
| ) |
|
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
◆ isValidText()
| bool YQComboBox::isValidText |
( |
const QString & |
txt | ) |
const |
Returns 'true' if the given text is valid according to the current setting of ValidChars.
◆ preferredHeight()
| int YQComboBox::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
| int YQComboBox::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ setEnabled()
| void YQComboBox::setEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
Set enabled / disabled state.
Reimplemented from YWidget.
◆ setInputMaxLength()
| void YQComboBox::setInputMaxLength |
( |
int |
numberOfChars | ) |
|
|
virtual |
Specify the amount of characters which can be inserted.
Reimplemented from YComboBox.
◆ setKeyboardFocus()
| bool YQComboBox::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
◆ setLabel()
| void YQComboBox::setLabel |
( |
const std::string & |
label | ) |
|
|
virtual |
Change the label text.
Reimplemented from YSelectionWidget.
◆ setSize()
| void YQComboBox::setSize |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ setText()
| void YQComboBox::setText |
( |
const std::string & |
newText | ) |
|
|
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.
◆ setValidChars()
| void YQComboBox::setValidChars |
( |
const std::string & |
validChars | ) |
|
|
virtual |
Change the valid input characters.
Reimplemented from YComboBox.
◆ slotSelected
| void YQComboBox::slotSelected |
( |
int |
i | ) |
|
|
protectedslot |
Tells the ui that an item has been selected. This is only interesting if the `notify option is set.
◆ text()
| string YQComboBox::text |
( |
| ) |
|
|
protectedvirtual |
Return this ComboBox's current value as text.
Called internally from value(), selectedItem() and related.
Implemented from YComboBox.
◆ textChanged
| void YQComboBox::textChanged |
( |
QString |
| ) |
|
|
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.
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/libyui-qt-4.0.0/src/YQComboBox.h
- /home/abuild/rpmbuild/BUILD/libyui-qt-4.0.0/src/YQComboBox.cc