QMutex: add missing <chrono> include

std::chrono is still used in the header.
Do not rely on transitive includes, instead include the header
explicitly.

Change-Id: If9140499e5dccf0065a4826831d3b83813910318
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 32d44b612c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ivan Solovev 2023-07-18 11:15:36 +02:00 committed by Qt Cherry-pick Bot
parent 2b7854bd31
commit ad330d9f61

View File

@ -9,6 +9,8 @@
#include <QtCore/qdeadlinetimer.h>
#include <QtCore/qtsan_impl.h>
#include <chrono>
QT_BEGIN_NAMESPACE
#if QT_CONFIG(thread) || defined(Q_QDOC)