mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-07 23:24:28 -04:00
[3rdparty] Chase API deprecation in Qt
- QElapsedTimer has existed since Qt 4.7
This commit is contained in:
parent
4c0a212b68
commit
f67d8ef162
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include <QSharedMemory>
|
#include <QSharedMemory>
|
||||||
#include <QSharedData>
|
#include <QSharedData>
|
||||||
#include <QBasicTimer>
|
#include <QBasicTimer>
|
||||||
|
#include <QElapsedTimer>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -764,7 +765,7 @@ void KDSingleApplicationGuard::Private::create( const QStringList & arguments )
|
||||||
}
|
}
|
||||||
|
|
||||||
const int maxWaitMSecs = 1000 * 60; // stop waiting after 60 seconds
|
const int maxWaitMSecs = 1000 * 60; // stop waiting after 60 seconds
|
||||||
QTime waitTimer;
|
QElapsedTimer waitTimer;
|
||||||
waitTimer.start();
|
waitTimer.start();
|
||||||
|
|
||||||
// lets wait till the other instance initialized the register
|
// lets wait till the other instance initialized the register
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue