Merge pull request #471 from BSDKaffee/qt-6.9-fixes

Qt 6.9 fixes
This commit is contained in:
Luis Ángel San Martín 2025-04-19 17:35:24 +02:00 committed by GitHub
commit d9b9fda337
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include <QDebug>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QVariantMap>
ResponseParser::ResponseParser(QObject *parent)
: QObject(parent), error(false), errorTxt("None"), numResults(-1), currentPage(-1), totalPages(-1)

View File

@ -209,6 +209,7 @@ void waitAndPrint(const ConcurrentQueue &queue, const QueueControlMessagePrinter
printer.printEndWaitingMessage();
}
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
template<typename T, std::size_t size>
QDebug operator<<(QDebug debug, const std::array<T, size> &array)
{
@ -225,6 +226,7 @@ QDebug operator<<(QDebug debug, const std::array<T, size> &array)
return debug;
}
#endif
using RandomEngine = std::mt19937_64;