Plasma
lineedit.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PLASMA_LINEEDIT_H
00021 #define PLASMA_LINEEDIT_H
00022
00023 #include <QtGui/QGraphicsProxyWidget>
00024
00025 class KLineEdit;
00026
00027 #include <plasma/plasma_export.h>
00028
00029 namespace Plasma
00030 {
00031
00032 class LineEditPrivate;
00033
00039 class PLASMA_EXPORT LineEdit : public QGraphicsProxyWidget
00040 {
00041 Q_OBJECT
00042
00043 Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
00044 Q_PROPERTY(QString text READ text WRITE setText)
00045 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
00046 Q_PROPERTY(KLineEdit *nativeWidget READ nativeWidget)
00047
00048 public:
00049 explicit LineEdit(QGraphicsWidget *parent = 0);
00050 ~LineEdit();
00051
00057 void setText(const QString &text);
00058
00062 QString text() const;
00063
00069 void setStyleSheet(const QString &stylesheet);
00070
00074 QString styleSheet();
00075
00079 KLineEdit *nativeWidget() const;
00080
00081 Q_SIGNALS:
00082 void editingFinished();
00083 void returnPressed();
00084 void textEdited(const QString &text);
00085
00086 private:
00087 Q_PRIVATE_SLOT(d, void setPalette())
00088
00089 LineEditPrivate *const d;
00090 };
00091
00092 }
00093
00094 #endif // multiple inclusion guard