/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2024 Adriaan de Groot * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * * */ #ifndef CALAMARES_COMPAT_XML_H #define CALAMARES_COMPAT_XML_H #include namespace Calamares { #if QT_VERSION < QT_VERSION_CHECK( 6, 7, 0 ) using checkBoxStateType = int; const auto checkBoxStateChangedSignal = &QCheckBox::stateChanged; constexpr checkBoxStateType checkBoxUncheckedValue = 0; #else using checkBoxStateType = Qt::CheckState; const auto checkBoxStateChangedSignal = &QCheckBox::checkStateChanged; constexpr checkBoxStateType checkBoxUncheckedValue = Qt::Unchecked; #endif } // namespace Calamares #endif