mirror of
https://github.com/overte-org/overte.git
synced 2025-06-17 19:00:51 +02:00
26 lines
No EOL
513 B
C++
Executable file
26 lines
No EOL
513 B
C++
Executable file
#include "fvupdatedownloadprogress.h"
|
|
|
|
FvUpdateDownloadProgress::FvUpdateDownloadProgress(QWidget *parent)
|
|
: QWidget(parent, Qt::SplashScreen)
|
|
{
|
|
ui.setupUi(this);
|
|
|
|
ui.progress->setValue(0);
|
|
|
|
}
|
|
|
|
FvUpdateDownloadProgress::~FvUpdateDownloadProgress()
|
|
{
|
|
|
|
}
|
|
|
|
void FvUpdateDownloadProgress::downloadProgress ( qint64 bytesReceived, qint64 bytesTotal )
|
|
{
|
|
ui.progress->setValue( ((float)bytesReceived / (float)bytesTotal) * 100 );
|
|
}
|
|
|
|
void FvUpdateDownloadProgress::close()
|
|
{
|
|
this->deleteLater();
|
|
QWidget::close();
|
|
} |