d0ee3ccc8
고영탁
버그 수정 및 비밀 번호 입력창 개발
|
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
|
#include "servicepassinputdlg.h"
#include "ui_servicepassinputdlg.h"
#define PASS_WORD "0000"
ServicePassInputDlg::ServicePassInputDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::ServicePassInputDlg)
{
ui->setupUi(this);
setWindowFlags(Qt::FramelessWindowHint);
setAttribute(Qt::WA_NoSystemBackground);
setAttribute(Qt::WA_TranslucentBackground);
setAttribute(Qt::WA_DeleteOnClose);
}
ServicePassInputDlg::~ServicePassInputDlg()
{
delete ui;
}
void ServicePassInputDlg::on_ctrBtnOk_clicked()
{
if(ui->lineEdit->text() == PASS_WORD){
accept();
}
else reject();
}
void ServicePassInputDlg::on_ctrBtnCancel_clicked()
{
reject();
}
|