mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-05 23:39:34 +00:00
QTime -> QElapsedTimer
This commit is contained in:
parent
d71f4c279b
commit
83c23c7a3a
plugins
src/support
@ -18,7 +18,7 @@
|
||||
*
|
||||
*/
|
||||
#include <QtCrypto>
|
||||
#include <QTime>
|
||||
#include <QElapsedTimer>
|
||||
#include <QtPlugin>
|
||||
|
||||
#include <qstringlist.h>
|
||||
@ -209,7 +209,7 @@ public:
|
||||
{
|
||||
Q_ASSERT(iterationCount != NULL);
|
||||
Botan::OctetString key;
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
std::string secretString(secret.data(), secret.size() );
|
||||
|
||||
*iterationCount = 0;
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <QtCore/qplugin.h>
|
||||
|
||||
#include <QTime>
|
||||
#include <QElapsedTimer>
|
||||
|
||||
#include <qstringlist.h>
|
||||
#include <gcrypt.h>
|
||||
@ -350,7 +350,7 @@ public:
|
||||
unsigned int *iterationCount) override
|
||||
{
|
||||
Q_ASSERT(iterationCount != NULL);
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
|
||||
/*
|
||||
from RFC2898:
|
||||
@ -449,7 +449,7 @@ public:
|
||||
{
|
||||
Q_ASSERT(iterationCount != NULL);
|
||||
QCA::SymmetricKey result(keyLength);
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
|
||||
*iterationCount = 0;
|
||||
timer.start();
|
||||
|
@ -23,8 +23,8 @@
|
||||
#include <QtCrypto>
|
||||
#include <qcaprovider.h>
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
#include <QScopedPointer>
|
||||
#include <QTime>
|
||||
#include <QtPlugin>
|
||||
|
||||
#include <openssl/evp.h>
|
||||
@ -1164,7 +1164,7 @@ public:
|
||||
unsigned int *iterationCount) override
|
||||
{
|
||||
Q_ASSERT(iterationCount != NULL);
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
|
||||
/* from RFC2898:
|
||||
Steps:
|
||||
@ -1250,7 +1250,7 @@ public:
|
||||
unsigned int *iterationCount) override
|
||||
{
|
||||
Q_ASSERT(iterationCount != NULL);
|
||||
QTime timer;
|
||||
QElapsedTimer timer;
|
||||
SecureArray out(keyLength);
|
||||
|
||||
*iterationCount = 0;
|
||||
|
@ -23,10 +23,10 @@
|
||||
|
||||
#include <QAbstractEventDispatcher>
|
||||
#include <QCoreApplication>
|
||||
#include <QElapsedTimer>
|
||||
#include <QEvent>
|
||||
#include <QMutex>
|
||||
#include <QPair>
|
||||
#include <QTime>
|
||||
#include <QWaitCondition>
|
||||
|
||||
//#define TIMERFIXER_DEBUG
|
||||
@ -48,7 +48,7 @@ public:
|
||||
{
|
||||
int id;
|
||||
int interval;
|
||||
QTime time;
|
||||
QElapsedTimer time;
|
||||
bool fixInterval;
|
||||
|
||||
TimerInfo() : fixInterval(false) {}
|
||||
@ -182,7 +182,7 @@ private slots:
|
||||
QThread *objectThread = target->thread();
|
||||
QAbstractEventDispatcher *ed = QAbstractEventDispatcher::instance(objectThread);
|
||||
|
||||
int timeLeft = qMax(info.interval - info.time.elapsed(), 0);
|
||||
int timeLeft = qMax(info.interval - static_cast<int>(info.time.elapsed()), 0);
|
||||
info.fixInterval = true;
|
||||
ed->unregisterTimer(info.id);
|
||||
#if QT_VERSION >= 0x050000
|
||||
|
Loading…
x
Reference in New Issue
Block a user