summaryrefslogtreecommitdiff
path: root/Core.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2022-06-26 21:42:44 +0100
committerThomas Preud'homme <robotux@celest.fr>2022-06-26 21:42:44 +0100
commitcec2190aa2a5d65d3e09ae26dd5aafeaa5007862 (patch)
tree3adfa5ef0125e39dc1d388bdf885c0529c6fceb1 /Core.h
parent08b0288421b2cd69bbfd8a8a109572f04df69bbe (diff)
New upstream version 2.2.6.0
Diffstat (limited to 'Core.h')
-rwxr-xr-xCore.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Core.h b/Core.h
index b4dec33..42cef9a 100755
--- a/Core.h
+++ b/Core.h
@@ -11,7 +11,7 @@
#include <QString>
#include <QList>
#include <QTimer>
-#include <QTime>
+#include <QElapsedTimer>
#include <QFile>
#include <QUrl>
#ifndef NOAUDIO
@@ -53,6 +53,7 @@ class Core : public QObject
struct CopyInstance
{
unsigned int id;
+ QElapsedTimer lastProgressionTime;//to compute the speed in B/s
PluginInterface_CopyEngine * engine;
PluginInterface_Themes * interface;
bool ignoreMode;
@@ -73,7 +74,7 @@ class Core : public QObject
Ultracopier::CopyType type;
Ultracopier::TransferListOperation transferListOperation;
bool haveError;
- QTime lastConditionalSync;
+ QElapsedTimer lastConditionalSync;
QTimer *nextConditionalSync;
bool copyEngineIsSync;
bool canceled;//to not try groun when is in canceling
@@ -124,7 +125,6 @@ class Core : public QObject
unsigned int incrementId();
unsigned int nextId;
std::vector<unsigned int> idList;
- QTime lastProgressionTime;
QTimer forUpateInformation;///< used to call \see periodicSynchronization()
void resetSpeedDetected(const unsigned int &bindex);