Plasma
Go to the documentation of this file.
20#ifndef PLASMA_LINEEDIT_H
21#define PLASMA_LINEEDIT_H
23#include <QtGui/QGraphicsProxyWidget>
44 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
45 Q_PROPERTY(
bool clearButtonShown READ isClearButtonShown WRITE setClearButtonShown)
46 Q_PROPERTY(QString clickMessage READ clickMessage WRITE setClickMessage)
47 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
48 Q_PROPERTY(KLineEdit *nativeWidget READ nativeWidget WRITE setNativeWidget)
59 void setText(
const QString &text);
70 void setClearButtonShown(
bool show);
76 bool isClearButtonShown()
const;
84 void setClickMessage(
const QString &message);
90 QString clickMessage()
const;
97 void setStyleSheet(
const QString &stylesheet);
110 void setNativeWidget(KLineEdit *nativeWidget);
115 KLineEdit *nativeWidget()
const;
118 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
119 void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
120 void changeEvent(QEvent *event);
122 void mousePressEvent(QGraphicsSceneMouseEvent *event);
123 void focusInEvent(QFocusEvent *event);
124 void focusOutEvent(QFocusEvent *event);
143 Q_PRIVATE_SLOT(d,
void setPalette())
145 LineEditPrivate *const d;
Provides a plasma-themed KLineEdit.
void textChanged(const QString &text)
Emitted when the text changes.
void textEdited(const QString &text)
void focusChanged(bool focused)
Emitted when the widget receives or loses focus.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.