Fix QTime function deprecation warnings by switching to QElapsedTimer
ClosedPublic

Authored by ndavis on Dec 29 2019, 8:14 AM.

Details

Summary

The following functions have deprecation warnings: QTime::start(), QTime::restart(), QTime::elapsed() and recommend that QElapsedTimer be used instead of QTime.
_clock.isNull() had to be changed to !_clock.isValid() since QElapsedTimer does not have isNull().
QTime::isNull() is also invalid, so behavior shouldn't change.

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ndavis created this revision.Dec 29 2019, 8:14 AM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 29 2019, 8:14 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ndavis requested review of this revision.Dec 29 2019, 8:14 AM
ndavis edited the summary of this revision. (Show Details)Dec 29 2019, 11:47 PM
hpereiradacosta accepted this revision.Dec 30 2019, 12:10 AM
This revision is now accepted and ready to land.Dec 30 2019, 12:10 AM
This revision was automatically updated to reflect the committed changes.