-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathonefqdialog.cpp
More file actions
46 lines (41 loc) · 1 KB
/
Copy pathonefqdialog.cpp
File metadata and controls
46 lines (41 loc) · 1 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
#include "onefqdialog.h"
#include "ui_onefqdialog.h"
OneFqDialog::OneFqDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::OneFqDialog)
{
ui->setupUi(this);
connect(ui->stopButton, &QPushButton::clicked, this, &OneFqDialog::canceled);
QLabel* label = ui->label;
label->setStyleSheet("QLabel { color : white;"
"margin-top: 6px;"
"margin-bottom: 6px;"
"margin-left: 10px;"
"margin-right: 10px; }");
setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
}
OneFqDialog::~OneFqDialog()
{
delete ui;
}
void OneFqDialog::changeEvent(QEvent *e)
{
QDialog::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}
void OneFqDialog::reject()
{
emit canceled();
}
void OneFqDialog::update(QString _msg)
{
ui->label->setText(_msg);
QWidget::update();
QApplication::processEvents();
}