Plasma
Go to the documentation of this file. 20 #ifndef PLASMA_COMBOBOX_H 21 #define PLASMA_COMBOBOX_H 23 #include <QtGui/QGraphicsProxyWidget> 32 class ComboBoxPrivate;
44 Q_PROPERTY(QString text READ text NOTIFY textChanged)
45 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
46 Q_PROPERTY(KComboBox *nativeWidget READ nativeWidget WRITE setNativeWidget)
47 Q_PROPERTY(
int count READ count)
48 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
64 void setStyleSheet(const QString &stylesheet);
77 void setNativeWidget(KComboBox *nativeWidget);
82 KComboBox *nativeWidget() const;
88 Q_INVOKABLE
void addItem(const QString &text);
100 int currentIndex() const;
106 void setCurrentIndex(
int index);
116 void activated(const QString &text);
123 void textChanged(const QString &text);
129 void currentIndexChanged(
int index);
132 void resizeEvent(QGraphicsSceneResizeEvent *event);
133 void paint(QPainter *painter,
136 void focusInEvent(QFocusEvent *event);
137 void focusOutEvent(QFocusEvent *event);
138 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
139 void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
140 void changeEvent(QEvent *event);
141 void mousePressEvent(QGraphicsSceneMouseEvent *event);
145 ComboBoxPrivate * const d;
147 friend class ComboBoxPrivate;
148 Q_PRIVATE_SLOT(d,
void syncBorders())
149 Q_PRIVATE_SLOT(d,
void setPalette())
154 #endif // multiple inclusion guard Provides a Plasma-themed combo box.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Sat May 13 2017 06:40:51 by
doxygen 1.8.13 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.