Plasma
Plasma::ComboBox Class Reference
Provides a Plasma-themed combo box. More...
#include <Plasma/Widgets/ComboBox>

Public Slots | |
void | clear () |
Signals | |
void | activated (const QString &text) |
void | textChanged (const QString &text) |
Public Member Functions | |
void | addItem (const QString &text) |
ComboBox (QGraphicsWidget *parent=0) | |
KComboBox * | nativeWidget () const |
void | setStyleSheet (const QString &stylesheet) |
QString | styleSheet () |
QString | text () const |
~ComboBox () | |
Protected Member Functions | |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Properties | |
KComboBox | nativeWidget |
QGraphicsWidget | parentWidget |
QString | styleSheet |
QString | text |
Detailed Description
Provides a Plasma-themed combo box.
Definition at line 39 of file combobox.h.
Constructor & Destructor Documentation
Plasma::ComboBox::ComboBox | ( | QGraphicsWidget * | parent = 0 |
) | [explicit] |
Definition at line 113 of file combobox.cpp.
Plasma::ComboBox::~ComboBox | ( | ) |
Definition at line 136 of file combobox.cpp.
Member Function Documentation
void Plasma::ComboBox::activated | ( | const QString & | text | ) | [signal] |
void Plasma::ComboBox::addItem | ( | const QString & | text | ) |
Adds an item to the combobox with the given text.
The item is appended to the list of existing items.
Definition at line 162 of file combobox.cpp.
void Plasma::ComboBox::clear | ( | ) | [slot] |
Definition at line 167 of file combobox.cpp.
void Plasma::ComboBox::hoverEnterEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Definition at line 266 of file combobox.cpp.
void Plasma::ComboBox::hoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Definition at line 282 of file combobox.cpp.
KComboBox* Plasma::ComboBox::nativeWidget | ( | ) | const |
- Returns:
- the native widget wrapped by this ComboBox
void Plasma::ComboBox::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget | |||
) | [protected] |
Definition at line 191 of file combobox.cpp.
void Plasma::ComboBox::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
Definition at line 172 of file combobox.cpp.
void Plasma::ComboBox::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this ComboBox.
- stylesheet a CSS string
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 |
- Returns:
- the display text
void Plasma::ComboBox::textChanged | ( | const QString & | text | ) | [signal] |
Property Documentation
KComboBox * Plasma::ComboBox::nativeWidget [read] |
Definition at line 46 of file combobox.h.
QGraphicsWidget Plasma::ComboBox::parentWidget [read] |
Definition at line 43 of file combobox.h.
QString Plasma::ComboBox::styleSheet [read, write] |
Definition at line 45 of file combobox.h.
QString Plasma::ComboBox::text [read] |
Definition at line 44 of file combobox.h.
The documentation for this class was generated from the following files: