Port away from deprecated QTime::elapsed.
This commit is contained in:
parent
26bc8be472
commit
6ab1e3aa13
|
@ -72,7 +72,7 @@ ApplyProgressDialog::ApplyProgressDialog(QWidget* parent, OperationRunner& orunn
|
|||
m_Report(nullptr),
|
||||
m_SavedParentTitle(mainWindow(this)->windowTitle()),
|
||||
m_Timer(this),
|
||||
m_Time(),
|
||||
m_ElapsedTimer(),
|
||||
m_CurrentOpItem(nullptr),
|
||||
m_CurrentJobItem(nullptr),
|
||||
m_LastReportUpdate(0)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <QDialog>
|
||||
#include <QString>
|
||||
#include <QTime>
|
||||
#include <QElapsedTimer>
|
||||
#include <QTimer>
|
||||
|
||||
class OperationRunner;
|
||||
|
@ -124,8 +124,8 @@ protected:
|
|||
|
||||
void allOpsDone(const QString& msg);
|
||||
|
||||
QTime& time() {
|
||||
return m_Time;
|
||||
QElapsedTimer& time() {
|
||||
return m_ElapsedTimer;
|
||||
}
|
||||
|
||||
QTimer& timer() {
|
||||
|
@ -171,7 +171,7 @@ private:
|
|||
Report* m_Report;
|
||||
QString m_SavedParentTitle;
|
||||
QTimer m_Timer;
|
||||
QTime m_Time;
|
||||
QElapsedTimer m_ElapsedTimer;
|
||||
QTreeWidgetItem* m_CurrentOpItem;
|
||||
QTreeWidgetItem* m_CurrentJobItem;
|
||||
int m_LastReportUpdate;
|
||||
|
|
Loading…
Reference in New Issue