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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.