20 #ifndef PLASMA_LINEEDIT_H
21 #define PLASMA_LINEEDIT_H
23 #include <QtGui/QGraphicsProxyWidget>
32 class LineEditPrivate;
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);
102 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);
127 void editingFinished();
128 void returnPressed();
129 void textEdited(const QString &text);
135 void textChanged(const QString &text);
140 void focusChanged(
bool focused);
143 Q_PRIVATE_SLOT(d,
void setPalette())
145 LineEditPrivate *const d;
150 #endif // multiple inclusion guard
Provides a plasma-themed KLineEdit.