-
Notifications
You must be signed in to change notification settings - Fork 19
/
startupprocess.cpp
51 lines (42 loc) · 1.1 KB
/
startupprocess.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
47
48
49
50
51
#include "startupprocess.h"
#include "ui_startupprocess.h"
#include "Common/commonfunction.h"
#include <windows.h>
CStartupProcess* CStartupProcess::pFrame = NULL;
CStartupProcess::CStartupProcess(QWidget *parent) :
QFrame(parent),
ui(new Ui::CStartupProcess)
{
ui->setupUi(this);
setWindowFlags( Qt::FramelessWindowHint );
//QString strPath;
//CCommonFunction::GetPath( strPath, CommonDataType::PathUIImage );
//strPath += "StartupProcess.jpg";
//QString strStyle = QString( "backfround-image:url(%1);" ).arg( strPath );
//setStyleSheet( strStyle );
}
CStartupProcess::~CStartupProcess()
{
delete ui;
}
CStartupProcess* CStartupProcess::GetFrame( QWidget* parent )
{
if ( NULL == pFrame ) {
pFrame = new CStartupProcess( parent );
CCommonFunction::MySetWindowPos( pFrame );
pFrame->show();
}
return pFrame;
}
void CStartupProcess::FreeFrame( )
{
if ( NULL != pFrame ) {
delete pFrame;
pFrame = NULL;
}
}
void CStartupProcess::UpdateInfo( QString strInfo )
{
ui->lblInfo->setText( strInfo );
pFrame->show();
}