-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuploadprogressdlg.cpp
46 lines (43 loc) · 1.5 KB
/
cuploadprogressdlg.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
/********************************************************************
*
* File: cuploadprogressdlg.cpp Class: CUploadProgressDlg
*
* This file is part of the MEGA-Series Project.
* Copyright (C) 2016 Joerg Pauly
* Created 04.01.2016 by joerg
* All Rights reserved
*
* Alle Programme der MEGA-Serie sind Freie Software:
* Sie können sie unter den Bedingungen
* der GNU Lesser General Public License, wie von der
* Free Software Foundation, Version 3 der Lizenz oder
* (nach Ihrer Option) jeder späteren veröffentlichten
* Version, weiterverbreiten und/oder modifizieren.
*
* Dieses Programm wird in der Hoffnung, dass es nützlich
* sein wird, aber OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt;
* sogar ohne die implizite Gewährleistung der MARKTFÄHIGKEIT
* oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
* Siehe die GNU Lesser General Public License für weitere Details.
*
* Sie sollten eine Kopie der GNU Lesser General Public License
* zusammen mit diesem Programm erhalten haben.
* Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*
********************************************************************/
#include "cuploadprogressdlg.h"
#include "ui_cuploadprogressdlg.h"
CUploadProgressDlg::CUploadProgressDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::CUploadProgressDlg)
{
ui->setupUi(this);
}
CUploadProgressDlg::~CUploadProgressDlg()
{
delete ui;
}
void CUploadProgressDlg::setProgress(qint64 pSent, qint64 pTotal)
{
ui->progressBar->setValue(pTotal * pSent / 100);
}