Merge pull request #18104 from sledgehammer999/remove_dead_code
[qBittorrent.git] / src / gui / lineedit.h
blob03d72cf8d252efb534bfdf0dc9b32ed37c0fde29
1 /****************************************************************************
2 **
3 ** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
4 **
5 ** Use, modification and distribution is allowed without limitation,
6 ** warranty, liability or support of any kind.
7 **
8 ****************************************************************************/
10 #pragma once
12 #include <QLineEdit>
14 class QToolButton;
16 class LineEdit final : public QLineEdit
18 Q_OBJECT
19 Q_DISABLE_COPY_MOVE(LineEdit)
21 public:
22 LineEdit(QWidget *parent);
24 protected:
25 void resizeEvent(QResizeEvent *e) override;
26 void keyPressEvent(QKeyEvent *event) override;
28 private:
29 QToolButton *m_searchButton = nullptr;