Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/PythonQtStdDecorators.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <QMetaMethod>
#include <QMetaEnum>
#include <QMetaProperty>
#if QT_VERSION >= 0x060000
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
#include <QRandomGenerator>
#endif

Expand Down Expand Up @@ -109,7 +109,7 @@ public Q_SLOTS:

int static_Qt_qrand()
{
#if QT_VERSION < 0x060000
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
return qrand();
#else
return QRandomGenerator::global()->generate();
Expand All @@ -118,7 +118,7 @@ public Q_SLOTS:

void static_Qt_qsrand(uint a)
{
#if QT_VERSION < 0x060000
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
qsrand(a);
#else
QRandomGenerator::global()->seed(a);
Expand Down
Loading