#include <Plasma/Widgets/ComboBox>
Provides a Plasma-themed combo box.
Definition at line 39 of file combobox.h.
Plasma::ComboBox::~ComboBox |
( |
| ) |
|
void Plasma::ComboBox::activated |
( |
const QString & |
text | ) |
|
|
signal |
This signal is sent when the user chooses an item in the combobox.
The item's text is passed.
void Plasma::ComboBox::addItem |
( |
const QString & |
text | ) |
|
Adds an item to the combo box with the given text.
The item is appended to the list of existing items.
Definition at line 183 of file combobox.cpp.
void Plasma::ComboBox::changeEvent |
( |
QEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::clear |
( |
| ) |
|
|
slot |
int Plasma::ComboBox::count |
( |
| ) |
const |
Returns the number of items in the combo box.
- Since
- 4.6
int Plasma::ComboBox::currentIndex |
( |
| ) |
const |
Returns the current index of the combobox.
- Since
- 4.6
void Plasma::ComboBox::currentIndexChanged |
( |
int |
index | ) |
|
|
signal |
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically.
void Plasma::ComboBox::focusInEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protected |
KComboBox* Plasma::ComboBox::nativeWidget |
( |
| ) |
const |
- Returns
- the native widget wrapped by this ComboBox
void Plasma::ComboBox::resizeEvent |
( |
QGraphicsSceneResizeEvent * |
event | ) |
|
|
protected |
void Plasma::ComboBox::setCurrentIndex |
( |
int |
index | ) |
|
Sets the current index of the combobox.
- Since
- 4.6
Definition at line 347 of file combobox.cpp.
void Plasma::ComboBox::setNativeWidget |
( |
KComboBox * |
nativeWidget | ) |
|
Sets the combo box wrapped by this ComboBox (widget must inherit KComboBox), ownership is transferred to the ComboBox.
- Parameters
-
nativeWidget | combo box that will be wrapped by this ComboBox |
- Since
- KDE4.4
Definition at line 157 of file combobox.cpp.
void Plasma::ComboBox::setStyleSheet |
( |
const QString & |
stylesheet | ) |
|
Sets the stylesheet used to control the visual display of this ComboBox.
- Parameters
-
Definition at line 147 of file combobox.cpp.
QString Plasma::ComboBox::styleSheet |
( |
| ) |
|
- Returns
- the stylesheet currently used with this widget
QString Plasma::ComboBox::text |
( |
| ) |
const |
void Plasma::ComboBox::textChanged |
( |
const QString & |
text | ) |
|
|
signal |
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically.
The item's text is passed.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Sat Nov 8 2014 15:08:03 by
doxygen 1.8.8 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.