CuteLogger
Fast and simple logging solution for Qt based applications
lineeditclear.h
1/****************************************************************************
2**
3** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
4**
5** Use, modification and distribution is allowed without limitation,
6** warranty, liability or support of any kind.
7**
8****************************************************************************/
9
10#ifndef LINEEDIT_H
11#define LINEEDIT_H
12
13#include <QLineEdit>
14
15class QToolButton;
16
17class LineEditClear : public QLineEdit
18{
19 Q_OBJECT
20
21public:
22 LineEditClear(QWidget *parent = 0);
23
24protected:
25 void resizeEvent(QResizeEvent *);
26
27private slots:
28 void updateCloseButton(const QString &text);
29
30private:
31 QToolButton *clearButton;
32};
33
34#endif // LIENEDIT_H
35