/**************************************************************************** ** ** Copyright (c) 2007 Trolltech ASA ** ** Use, modification and distribution is allowed without limitation, ** warranty, liability or support of any kind. ** ****************************************************************************/ #ifndef LINEEDIT_H #define LINEEDIT_H #include class QToolButton; class SearchLineEdit : public QLineEdit { Q_OBJECT public: SearchLineEdit(QWidget *parent = 0); void paintEvent(QPaintEvent *event); protected: void resizeEvent(QResizeEvent *); private slots: void updateCloseButton(const QString &text); private: QToolButton *clearButton; }; #endif // LIENEDIT_H