We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347d31e commit d3a3f23Copy full SHA for d3a3f23
src/PythonQtStdDecorators.h
@@ -58,7 +58,7 @@
58
#include <QMetaMethod>
59
#include <QMetaEnum>
60
#include <QMetaProperty>
61
-#if QT_VERSION >= 0x060000
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
62
#include <QRandomGenerator>
63
#endif
64
@@ -109,7 +109,7 @@ public Q_SLOTS:
109
110
int static_Qt_qrand()
111
{
112
-#if QT_VERSION < 0x060000
+#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
113
return qrand();
114
#else
115
return QRandomGenerator::global()->generate();
@@ -118,7 +118,7 @@ public Q_SLOTS:
118
119
void static_Qt_qsrand(uint a)
120
121
122
qsrand(a);
123
124
QRandomGenerator::global()->seed(a);
0 commit comments