You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
824 B
C++
43 lines
824 B
C++
14 years ago
|
/****************************************************************************
|
||
|
**
|
||
|
** 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>
|
||
11 years ago
|
#include <QStyle>
|
||
|
#include <QStylePainter>
|
||
|
#include <QToolButton>
|
||
14 years ago
|
|
||
|
class QToolButton;
|
||
|
|
||
11 years ago
|
class LineEdit : public QLineEdit
|
||
14 years ago
|
{
|
||
11 years ago
|
Q_OBJECT
|
||
14 years ago
|
|
||
11 years ago
|
QString mPlaceholderText;
|
||
12 years ago
|
|
||
11 years ago
|
public:
|
||
|
LineEdit(QWidget *parent = 0);
|
||
14 years ago
|
|
||
11 years ago
|
protected:
|
||
|
void resizeEvent(QResizeEvent *);
|
||
14 years ago
|
|
||
11 years ago
|
private slots:
|
||
|
void updateClearButton(const QString &text);
|
||
|
|
||
|
protected:
|
||
|
QToolButton *mClearButton;
|
||
|
|
||
|
void setupClearButton();
|
||
|
};
|
||
14 years ago
|
|
||
|
#endif // LIENEDIT_H
|
||
|
|