aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-26 17:18:57 +0200
committerhjk <hjk@qt.io>2019-07-30 08:14:20 +0000
commit0a19b8e115784efaa069ddbc6d5168e85e4c3775 (patch)
tree5d0e5ffdf9f3dbecca68f8ec0bd6e8e7e8465ff6 /src/plugins/qmlprofiler
parenta99e5af1da276ddca391fb56a1a9a5334794f298 (diff)
QmlProfiler: Avoid a deprecation warning
Change-Id: Ie30d30d304faf71dee36c8ae3a37e8974af99bf3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index 984446c3f9..d951eb4dce 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -74,6 +74,7 @@
#include <QApplication>
#include <QDockWidget>
+#include <QElapsedTimer>
#include <QFileDialog>
#include <QHBoxLayout>
#include <QLabel>
@@ -120,7 +121,7 @@ public:
// elapsed time display
QLabel *m_timeLabel = nullptr;
QTimer m_recordingTimer;
- QTime m_recordingElapsedTime;
+ QElapsedTimer m_recordingElapsedTime;
bool m_toolBusy = false;
};