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
Branch
replace-deprecated-2 (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 20359
Build 20377: arc lint + arc unit
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.