aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-05 12:14:08 +0200
committerhjk <hjk@qt.io>2019-07-05 10:49:15 +0000
commit801ad1e8695ed02d412391882f7078ffaf6d2366 (patch)
tree1f3db74dd41ef26dda48a4b656d205517fb04e2f /src/plugins/clangcodemodel
parent288ff9a8543ff26f126ea1a98436b33d5d12511c (diff)
ClangCodeModel: Avoid warnings on deprecated use of QTime
Change-Id: Ia1d07367ad85b78201ed7553d9cfb02c1bd31ae0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel')
-rw-r--r--src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp b/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
index 05fa0cace5..8d3f1b54a0 100644
--- a/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
+++ b/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
@@ -226,7 +226,7 @@ bool OpenEditorAtCursorPosition::waitUntilProjectPartChanged(const QString &newP
bool OpenEditorAtCursorPosition::waitUntil(const std::function<bool ()> &condition, int timeout)
{
- QTime time;
+ QElapsedTimer time;
time.start();
forever {
@@ -432,7 +432,7 @@ bool MonitorGeneratedUiFile::waitUntilGenerated(int timeout) const
if (m_isGenerated)
return true;
- QTime time;
+ QElapsedTimer time;
time.start();
forever {
@@ -472,10 +472,10 @@ public:
{
QTC_ASSERT(writeFile(m_filePath, m_fileContents), return false);
- QTime totalTime;
+ QElapsedTimer totalTime;
totalTime.start();
- QTime writeFileAgainTime;
+ QElapsedTimer writeFileAgainTime;
writeFileAgainTime.start();
forever {