#include <Plasma/Widgets/ComboBox>
Provides a Plasma-themed combo box.
Definition at line 39 of file combobox.h.
◆ ComboBox()
◆ ~ComboBox()
Plasma::ComboBox::~ComboBox |
( |
| ) |
|
◆ activated
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.
◆ addItem()
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.
◆ changeEvent()
void Plasma::ComboBox::changeEvent |
( |
QEvent * |
event | ) |
|
|
protected |
◆ clear
void Plasma::ComboBox::clear |
( |
| ) |
|
|
slot |
◆ count()
int Plasma::ComboBox::count |
( |
| ) |
const |
Returns the number of items in the combo box.
- Since
- 4.6
Definition at line 337 of file combobox.cpp.
◆ currentIndex()
int Plasma::ComboBox::currentIndex |
( |
| ) |
const |
Returns the current index of the combobox.
- Since
- 4.6
Definition at line 342 of file combobox.cpp.
◆ currentIndexChanged
void Plasma::ComboBox::currentIndexChanged |
( |
int |
index | ) |
|
|
signal |
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically.
◆ focusInEvent()
void Plasma::ComboBox::focusInEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
◆ focusOutEvent()
void Plasma::ComboBox::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
◆ hoverEnterEvent()
void Plasma::ComboBox::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
◆ hoverLeaveEvent()
void Plasma::ComboBox::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
◆ mousePressEvent()
void Plasma::ComboBox::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protected |
◆ nativeWidget()
KComboBox * Plasma::ComboBox::nativeWidget |
( |
| ) |
const |
◆ paint()
◆ resizeEvent()
void Plasma::ComboBox::resizeEvent |
( |
QGraphicsSceneResizeEvent * |
event | ) |
|
|
protected |
◆ setCurrentIndex()
void Plasma::ComboBox::setCurrentIndex |
( |
int |
index | ) |
|
Sets the current index of the combobox.
- Since
- 4.6
Definition at line 347 of file combobox.cpp.
◆ setNativeWidget()
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.
◆ setStyleSheet()
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.
◆ styleSheet()
QString Plasma::ComboBox::styleSheet |
( |
| ) |
|
- Returns
- the stylesheet currently used with this widget
◆ text()
QString Plasma::ComboBox::text |
( |
| ) |
const |
◆ textChanged
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.
◆ count
int Plasma::ComboBox::count |
|
read |
◆ currentIndex
int Plasma::ComboBox::currentIndex |
|
readwrite |
◆ nativeWidget
KComboBox * Plasma::ComboBox::nativeWidget |
|
readwrite |
◆ parentWidget
◆ styleSheet
QString Plasma::ComboBox::styleSheet |
|
readwrite |
◆ text
QString Plasma::ComboBox::text |
|
read |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.