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);
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
Namespace for everything in libplasma.
void currentIndexChanged(int index)
This signal is sent whenever the currentIndex in the combobox changes either through user interaction...
void activated(const QString &text)
This signal is sent when the user chooses an item in the combobox.
void textChanged(const QString &text)
This signal is sent whenever the currentIndex in the combobox changes either through user interaction...
Provides a Plasma-themed combo box.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.