-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.cpp
More file actions
70 lines (64 loc) · 1.04 KB
/
popup.cpp
File metadata and controls
70 lines (64 loc) · 1.04 KB
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
#include "popup.h"
#include "ui_popup.h"
PopUp::PopUp(QWidget *parent) :
QDialog(parent),
ui(new Ui::PopUp)
{
ui->setupUi(this);
}
PopUp::~PopUp()
{
delete ui;
}
void PopUp::SetLabel1(QString label)
{
ui->label1->setText(label);
}
void PopUp::SetLabel2(QString label)
{
ui->label2->setText(label);
}
void PopUp::SetLabel3(QString label)
{
ui->label3->setText(label);
}
void PopUp::SetLabel4(QString label)
{
ui->label4->setText(label);
}
void PopUp::SetLabel5(QString label)
{
ui->label5->setText(label);
}
void PopUp::ClearLabel1(void)
{
ui->label1->clear();
}
void PopUp::ClearLabel2(void)
{
ui->label2->clear();
}
void PopUp::ClearLabel3(void)
{
ui->label3->clear();
}
void PopUp::ClearLabel4(void)
{
ui->label4->clear();
}
void PopUp::ClearLabel5(void)
{
ui->label5->clear();
}
void PopUp::ClearAll(void)
{
ClearLabel1();
ClearLabel2();
ClearLabel3();
ClearLabel4();
ClearLabel5();
}
void PopUp::on_pushButton_close_clicked()
{
this->close();
}