Plasma
combobox.cpp
Go to the documentation of this file.
109 focusIndicator->setFlag(QGraphicsItem::ItemStacksBehindParent, !q->nativeWidget()->isEditable() || !lineEditBackground->hasElement("hint-focus-over-base"));
QGraphicsWidget * parentWidget() const
void setStyleSheet(const QString &styleSheet)
void activated(const QString &text)
This signal is sent when the user chooses an item in the combobox.
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setCompositionMode(CompositionMode mode)
void fill(const QColor &color)
virtual void focusInEvent(QFocusEvent *event)
void setAcceptHoverEvents(bool enabled)
QGraphicsScene * scene() const
void adjust(qreal dx1, qreal dy1, qreal dx2, qreal dy2)
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: combobox.cpp:309
void initFrom(const QWidget *widget)
QSizeF size() const
virtual void resizeEvent(QGraphicsSceneResizeEvent *event)
virtual void changeEvent(QEvent *event)
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: combobox.cpp:303
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
void setNativeWidget(KComboBox *nativeWidget)
Sets the combo box wrapped by this ComboBox (widget must inherit KComboBox), ownership is transferred...
Definition: combobox.cpp:157
void setPen(const QColor &color)
KComboBox * nativeWidget() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool sendEvent(QObject *receiver, QEvent *event)
void textChanged(const QString &text)
This signal is sent whenever the currentIndex in the combobox changes either through user interaction...
QString styleSheet()
void deleteLater()
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: combobox.cpp:321
Definition: theme.h:67
virtual void closeEvent(QCloseEvent *event)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: combobox.cpp:212
bool isEnabled() const
void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: combobox.cpp:193
virtual void focusOutEvent(QFocusEvent *event)
QRectF rect() const
QWidget * widget() const
Q_INVOKABLE void addItem(const QString &text)
Adds an item to the combo box with the given text.
Definition: combobox.cpp:183
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QRect rect() const
void setZValue(qreal z)
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this ComboBox.
Definition: combobox.cpp:147
void currentIndexChanged(int index)
This signal is sent whenever the currentIndex in the combobox changes either through user interaction...
QString text() const
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.