QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
qpushbuttonshowpassword.h
1// SPDX-FileCopyrightText: 2020 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
3#ifndef SRC_QPUSHBUTTONSHOWPASSWORD_H_
4#define SRC_QPUSHBUTTONSHOWPASSWORD_H_
5
6#include <QLineEdit>
7#include <QPushButton>
8
9class QWidget;
14class QPushButtonShowPassword : public QPushButton {
15 Q_OBJECT
16
17public:
23 explicit QPushButtonShowPassword(QLineEdit *line, QWidget *parent = nullptr);
24
25signals:
30 void clicked(const QString &text);
31
32private slots:
33 void buttonClicked(bool);
34
35private:
36 QIcon iconEdit;
37 QIcon iconEditPushed;
38 QLineEdit *line;
39};
40
41#endif // SRC_QPUSHBUTTONSHOWPASSWORD_H_
QPushButtonShowPassword(QLineEdit *line, QWidget *parent=nullptr)
Construct a show-password button linked to the given QLineEdit.
void clicked(const QString &text)
Emitted on button activation with the current text of the line edit.