Commit 55ee2b4
Fix warning related to use of qrand() when building against Qt 5.15
Starting with Qt 5.15, the `qrand` function has been deprecated in favor of
`QRandomGenerator`. This change updates `PythonQtStdDecorators.h` to use
`QRandomGenerator` when building against Qt 5.15 or later.
See qt/qtbase@b3c0e9afa ("Deprecate qrand/qsrand", 2001-09-17)
(cherry picked from commit commontk/PythonQt@c1579e2)1 parent 64dad5d commit 55ee2b4
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments