1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00
qBittorrent/src/gui/lineedit.h
2022-06-23 21:31:16 +08:00

31 lines
691 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.
**
****************************************************************************/
#pragma once
#include <QLineEdit>
class QToolButton;
class LineEdit final : public QLineEdit
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(LineEdit)
public:
LineEdit(QWidget *parent);
protected:
void resizeEvent(QResizeEvent *e) override;
void keyPressEvent(QKeyEvent *event) override;
private:
QToolButton *m_searchButton = nullptr;
};