2022-10-11 16:14:58 +08:00
|
|
|
#include "loaddialog.h"
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
#define LOAD_W 60
|
|
|
|
#define LOAD_H 60
|
|
|
|
|
|
|
|
LoadDialog::LoadDialog(QWidget *parent) : QDialog(parent)
|
|
|
|
{
|
2023-04-26 11:42:52 +08:00
|
|
|
setAttribute(Qt::WA_TranslucentBackground);
|
|
|
|
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
|
|
|
setWindowModality(Qt::ApplicationModal); // 模态窗口
|
2022-10-11 16:14:58 +08:00
|
|
|
setFixedSize(LOAD_W, LOAD_H);
|
|
|
|
m_loadAnimation = new LoadAnimation(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void LoadDialog::setHighLight()
|
|
|
|
{
|
|
|
|
m_loadAnimation->setHighLight();
|
|
|
|
}
|