mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
34 lines
744 B
C++
34 lines
744 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 KEEPASSX_LINEEDIT_H
|
|
#define KEEPASSX_LINEEDIT_H
|
|
|
|
#include <QtGui/QLineEdit>
|
|
|
|
class QToolButton;
|
|
|
|
class LineEdit : public QLineEdit
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LineEdit(QWidget* parent = 0);
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent* event);
|
|
|
|
private Q_SLOTS:
|
|
void updateCloseButton(const QString& text);
|
|
|
|
private:
|
|
QToolButton* m_clearButton;
|
|
};
|
|
|
|
#endif // KEEPASSX_LINEEDIT_H
|