Commit 082b4fb1 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Model: use QElapsedTimer instead of QTime::currentTime()

parent 52336b0e
This diff is collapsed.
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#include "model.h" #include "model.h"
#include <config-messagelist.h> #include <config-messagelist.h>
#include <QTimer> #include <QTimer>
class QElapsedTimer;
namespace MessageList namespace MessageList
{ {
...@@ -71,16 +74,16 @@ public: ...@@ -71,16 +74,16 @@ public:
ViewItemJobInterrupted ViewItemJobInterrupted
}; };
ViewItemJobResult viewItemJobStepInternal(); ViewItemJobResult viewItemJobStepInternal();
ViewItemJobResult viewItemJobStepInternalForJob(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJob(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
// FIXME: Those look like they should be made virtual in some job class! -> Refactor // FIXME: Those look like they should be made virtual in some job class! -> Refactor
ViewItemJobResult viewItemJobStepInternalForJobPass1Fill(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass1Fill(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass1Cleanup(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass1Cleanup(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass1Update(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass1Update(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass2(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass2(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass3(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass3(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass4(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass4(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
ViewItemJobResult viewItemJobStepInternalForJobPass5(ViewItemJob *job, const QTime &tStart); ViewItemJobResult viewItemJobStepInternalForJobPass5(ViewItemJob *job, const QElapsedTimer &elapsedTimer);
void clearJobList(); void clearJobList();
void clearUnassignedMessageLists(); void clearUnassignedMessageLists();
void clearOrphanChildrenHash(); void clearOrphanChildrenHash();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment