From f67d8ef162ae0e32fb02b0f067ebcda0c67269dd Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 18 May 2020 10:25:19 +0200 Subject: [PATCH] [3rdparty] Chase API deprecation in Qt - QElapsedTimer has existed since Qt 4.7 --- 3rdparty/kdsingleapplicationguard/kdsingleapplicationguard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3rdparty/kdsingleapplicationguard/kdsingleapplicationguard.cpp b/3rdparty/kdsingleapplicationguard/kdsingleapplicationguard.cpp index 4c13e1da0..cd8fadcce 100644 --- a/3rdparty/kdsingleapplicationguard/kdsingleapplicationguard.cpp +++ b/3rdparty/kdsingleapplicationguard/kdsingleapplicationguard.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -764,7 +765,7 @@ void KDSingleApplicationGuard::Private::create( const QStringList & arguments ) } const int maxWaitMSecs = 1000 * 60; // stop waiting after 60 seconds - QTime waitTimer; + QElapsedTimer waitTimer; waitTimer.start(); // lets wait till the other instance initialized the register