-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelementinfowidget.h
79 lines (55 loc) · 1.57 KB
/
elementinfowidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef ELEMENTINFOWIDGET_H
#define ELEMENTINFOWIDGET_H
#include <QWidget>
#include <QBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <QApplication>
#include <QClipboard>
#include <QLineEdit>
#include <QTextEdit>
class ElementButton;
class ElementInfoWidget : public QWidget
{
Q_OBJECT
public:
explicit ElementInfoWidget(QWidget *parent = nullptr);
~ElementInfoWidget();
private:
QBoxLayout *p_central_vertical_layout;
QBoxLayout *p_name_horizontal_layout;
QBoxLayout *p_password_horizontal_layout;
QBoxLayout *p_note_horizontal_layout;
QBoxLayout *p_remove_button_horizontal_layout;
QPushButton *p_name_copy_button;
QPushButton *p_name_edit_button;
QPushButton *p_password_copy_button;
QPushButton *p_password_edit_button;
QPushButton *p_note_copy_button;
QPushButton *p_note_edit_button;
QPushButton *p_remove_button;
QTextEdit *p_name_text_edit;
QTextEdit *p_password_text_edit;
QTextEdit *p_note_text_edit;
public:
ElementButton *p_pair_button;
QString name, password, note;
signals:
void removeButtonClicked();
void nameEditButtonClicked();
void passwordEditButtonClicked();
void noteEditButtonClicked();
void nameEdited();
void passwordEdited();
void noteEdited();
public slots:
void setPairButton(ElementButton*);
void setName(QString);
void setPassword(QString);
void setNote(QString);
private slots:
void nameCopyButtonClicked();
void passwordCopyButtonClicked();
void noteCopyButtonClicked();
};
#endif // ELEMENTINFOWIDGET_H