qBittorrent
lineedit.h
Go to the documentation of this file.
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 ****************************************************************************/
9 
10 #pragma once
11 
12 #include <QLineEdit>
13 
14 class QToolButton;
15 
16 class LineEdit final : public QLineEdit
17 {
18  Q_OBJECT
19 
20 public:
21  LineEdit(QWidget *parent);
22 
23 protected:
24  void resizeEvent(QResizeEvent *e) override;
25  void keyPressEvent(QKeyEvent *event) override;
26 
27 private:
28  QToolButton *m_searchButton;
29 };
void resizeEvent(QResizeEvent *e) override
Definition: lineedit.cpp:39
QToolButton * m_searchButton
Definition: lineedit.h:28
void keyPressEvent(QKeyEvent *event) override
Definition: lineedit.cpp:48
LineEdit(QWidget *parent)
Definition: lineedit.cpp:21