mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
36 lines
694 B
C++
36 lines
694 B
C++
|
/****************************************************************************
|
||
|
**
|
||
|
** 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>
|
||
|
|
||
|
class QToolButton;
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
|
||
|
#endif // LIENEDIT_H
|
||
|
|