/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2023 Adriaan de Groot * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * * */ #ifndef CALAMARES_COMPAT_MUTEX_H #define CALAMARES_COMPAT_MUTEX_H #include namespace Calamares { /* * In Qt5, QMutexLocker is a class and operates implicitly on * QMutex but in Qt6 it is a template and needs a specialization. */ #if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) using MutexLocker = QMutexLocker; #else using MutexLocker = QMutexLocker< QMutex >; #endif } // namespace Calamares #endif