1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00
qBittorrent/src/gui/lineedit.h

31 lines
691 B
C
Raw Normal View History

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.
**
****************************************************************************/
#pragma once
2014-12-20 17:29:17 +00:00
#include <QLineEdit>
class QToolButton;
class LineEdit final : public QLineEdit
2014-12-20 17:29:17 +00:00
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(LineEdit)
2014-12-20 17:29:17 +00:00
public:
LineEdit(QWidget *parent);
2014-12-20 17:29:17 +00:00
protected:
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
};