2010-08-20 12:27:20 +00:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
|
|
|
** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
|
|
|
|
**
|
|
|
|
** Use, modification and distribution is allowed without limitation,
|
|
|
|
** warranty, liability or support of any kind.
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef LINEEDIT_H
|
|
|
|
#define LINEEDIT_H
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
2011-02-27 15:41:05 +00:00
|
|
|
QT_BEGIN_NAMESPACE
|
2010-08-20 12:27:20 +00:00
|
|
|
class QToolButton;
|
2011-02-27 15:41:05 +00:00
|
|
|
QT_END_NAMESPACE
|
2010-08-20 12:27:20 +00:00
|
|
|
|
|
|
|
class LineEdit : public QLineEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
LineEdit(QWidget *parent = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateCloseButton(const QString &text);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QToolButton *clearButton;
|
|
|
|
QToolButton *searchButton;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIENEDIT_H
|