2014-12-20 17:29:17 +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.
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
2020-12-10 17:56:37 +00:00
|
|
|
#pragma once
|
2014-12-20 17:29:17 +00:00
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class QToolButton;
|
|
|
|
|
2020-04-19 02:42:11 +00:00
|
|
|
class LineEdit final : public QLineEdit
|
2014-12-20 17:29:17 +00:00
|
|
|
{
|
2015-11-07 08:24:16 +00:00
|
|
|
Q_OBJECT
|
2022-05-18 05:43:04 +00:00
|
|
|
Q_DISABLE_COPY_MOVE(LineEdit)
|
2014-12-20 17:29:17 +00:00
|
|
|
|
|
|
|
public:
|
2015-11-07 08:24:16 +00:00
|
|
|
LineEdit(QWidget *parent);
|
2014-12-20 17:29:17 +00:00
|
|
|
|
|
|
|
protected:
|
2017-11-24 09:13:22 +00:00
|
|
|
void resizeEvent(QResizeEvent *e) override;
|
2018-05-23 20:41:13 +00:00
|
|
|
void keyPressEvent(QKeyEvent *event) override;
|
2014-12-20 17:29:17 +00:00
|
|
|
|
|
|
|
private:
|
2022-06-23 04:28:00 +00:00
|
|
|
QToolButton *m_searchButton = nullptr;
|
2014-12-20 17:29:17 +00:00
|
|
|
};
|