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