QtPass
1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
src
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
9
class
QWidget;
14
class
QPushButtonShowPassword
:
public
QPushButton {
15
Q_OBJECT
16
17
public
:
23
explicit
QPushButtonShowPassword
(QLineEdit *line, QWidget *parent =
nullptr
);
24
25
signals:
30
void
clicked
(
const
QString &text);
31
32
private
slots:
33
void
buttonClicked(
bool
);
34
35
private
:
36
QIcon iconEdit;
37
QIcon iconEditPushed;
38
QLineEdit *line;
39
};
40
41
#endif
// SRC_QPUSHBUTTONSHOWPASSWORD_H_
QPushButtonShowPassword::QPushButtonShowPassword
QPushButtonShowPassword(QLineEdit *line, QWidget *parent=nullptr)
Construct a show-password button linked to the given QLineEdit.
QPushButtonShowPassword::clicked
void clicked(const QString &text)
Emitted on button activation with the current text of the line edit.
Generated by
1.16.1