Qt5: 'void QTime::start()' / 'int QTime::elapsed() const' / 'int QTime::restart()' are deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-10 23:02:47 +02:00
committed by wwmayer
parent 8dbe26a95f
commit c8dae9eb85
13 changed files with 35 additions and 26 deletions

View File

@@ -26,9 +26,9 @@
# include <sstream>
# include <locale>
# include <iostream>
# include <QElapsedTimer>
#endif
# include <QTime>
#include "PyExport.h"
#include "Interpreter.h"
#include "Tools.h"
@@ -265,7 +265,7 @@ using namespace Base;
struct StopWatch::Private
{
QTime t;
QElapsedTimer t;
};
StopWatch::StopWatch() : d(new Private)
@@ -313,6 +313,3 @@ std::string StopWatch::toString(int ms) const
str << msec << "ms";
return str.str();
}