forked from lwher/Library-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoge.cpp
More file actions
36 lines (33 loc) · 751 Bytes
/
Copy pathdoge.cpp
File metadata and controls
36 lines (33 loc) · 751 Bytes
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
#include "doge.h"
#include "ui_doge.h"
Doge::Doge(QWidget *parent) :
QWidget(parent),
ui(new Ui::Doge)
{
ui->setupUi(this);
//this -> setAttribute(Qt::WA_TranslucentBackground, true);//透明
//this -> setWindowFlags(Qt::FramelessWindowHint);
this -> setWindowFlags(Qt::WindowStaysOnTopHint);
}
void Doge :: doge_warning(QString str)
{
ui -> doge_success_label -> hide();
ui -> doge_warning_label -> show();
show();
ui -> doge_edit -> setText(str);
}
void Doge :: doge_success(QString str)
{
ui -> doge_warning_label -> hide();
ui -> doge_success_label -> show();
show();
ui -> doge_edit -> setText(str);
}
Doge::~Doge()
{
delete ui;
}
void Doge::on_pushButton_clicked()
{
close();
}