-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprocesswidget.cpp
46 lines (39 loc) · 1.39 KB
/
processwidget.cpp
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 "processwidget.h"
#include "ui_processwidget.h"
ProcessWidget::ProcessWidget(QWidget *parent) :
QDialog(parent),
ui(new Ui::ProcessWidget)
{
ui->setupUi(this);
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
this->setFixedSize(220, 150);
this->setStyleSheet("QDialog#ProcessWidget {"
"background-color: #333333;"
"border: 1px solid #61d169;"
"}");
layout = new QGridLayout(this);
layout->addWidget(ui->lbl_Process, 0, 0, 1, -1, Qt::AlignCenter);
layout->addWidget(ui->btn_Cancel, 1, 0, 1, -1, Qt::AlignCenter);
ui->lbl_Process->setMargin(30);
ui->btn_Cancel->setFlat(true);
ui->btn_Cancel->setFixedSize(80, 30);
ui->lbl_Process->setStyleSheet("color: #e6e6e6");
ui->btn_Cancel->setStyleSheet("QPushButton {"
"border: 0px;"
"background-color: #4d4d4d;"
"color: #999999;"
"}"
"QPushButton:hover {"
"background-color: #737373;"
"color: #bfbfbf;"
"}");
}
ProcessWidget::~ProcessWidget()
{
delete ui;
}
void ProcessWidget::on_btn_Cancel_clicked()
{
emit processCanceled();
this->close();
}