Go to the documentation of this file.00001 #include "busydialog.h"
00002 #include "ui_busydialog.h"
00003 #include <QMovie>
00004
00005 BusyDialog::BusyDialog(QWidget *parent) :
00006 QDialog(parent),
00007 ui(new Ui::BusyDialog)
00008 {
00009 ui->setupUi(this);
00010
00011 setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
00012
00013 this->move( (parent->width() )/2,
00014 (parent->height()/2 - height()) );
00015
00016 QMovie *movie = new QMovie(":/icons/resources/loader.gif");
00017 QLabel *processLabel = new QLabel(this);
00018 processLabel->setMovie(movie);
00019
00020 ui->verticalLayout->addWidget(processLabel);
00021 movie->start();
00022 this->show();
00023
00024 this->setAttribute( Qt::WA_DeleteOnClose, true );
00025 }
00026
00027 BusyDialog::~BusyDialog()
00028 {
00029 delete ui;
00030 }