// clang-format off // SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company // clang-format on // SPDX-FileContributor: Andrew Hayzen // SPDX-FileContributor: Leon Matthes // // SPDX-License-Identifier: MIT OR Apache-2.0 #pragma once #include #include #include namespace rust { namespace cxxqtlib1 { QDate qdateAddDays(const QDate& date, ::std::int64_t ndays); QDate qdateCurrentDate(); QDate qdateFromString(const QString& string, const QString& format); QDate qdateFromString(const QString& string, Qt::DateFormat format); // In Qt 5 d is const-ref, in Qt 6 it is value ::std::int64_t qdateDaysTo(const QDate& date, QDate d); bool qdateIsLeapYear(::std::int32_t year); QString qdateToFormat(const QDate& date, const QString& format); } }