Debian Codegraph @

src/librssguard/gui/reusable/baselineedit.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #ifndef BASELINEEDIT_H
4 #define BASELINEEDIT_H
5
6 #include <QLineEdit>
7
8 class RSSGUARD_DLLSPEC BaseLineEdit : public QLineEdit {
9 Q_OBJECT
10
11 public:
12 explicit BaseLineEdit(QWidget* parent = nullptr);
13 virtual ~BaseLineEdit();
14
15 void setPasswordMode(bool is_password);
16
17 public slots:
18 void submit(const QString& text);
19
20 protected:
21 void keyPressEvent(QKeyEvent* event);
22
23 signals:
24 void submitted(const QString& text);
25
26 private:
27 QAction* m_actShowPassword;
28 };
29
30 #endif // BASELINEEDIT_H