-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload1.cpp
43 lines (39 loc) · 1.03 KB
/
load1.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
#include "load1.h"
#include "ui_load1.h"
#include"login.h"
#include "article.h"
QVector <Person>Global::vec_person;
Person Global::Active_person[20];
QVector <cloths>Global::vec_article_cloths;
QVector <QPair <int ,QPair<QPair<int,QString> , QPair<QString , int>>>> Global::vec_of_Buyer;
QVector<Sporting_goods> Global::vec_article_sporting_goods;
QVector<QPair<int , int > > Global::Shopping_cart[20];
load1::load1(QWidget *parent) :
QDialog(parent),
ui(new Ui::load1)
{
ui->setupUi(this);
this->setFixedSize(519,568);
setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
timer1 = new QTimer (this);
timer2 = new QTimer (this);
connect(timer1,SIGNAL(timeout()),this,SLOT(updat()));
timer1->start(80);
connect(timer2,SIGNAL(timeout()),this,SLOT(close_this()));
timer2->start(8000);
}
load1::~load1()
{
delete ui;
}
void load1::close_this()
{
login* m = new login;
m->show();
timer2->stop();
this->close();
}
void load1::updat()
{
ui->progressBar->setValue(ui->progressBar->value()+1);
}