summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-10-24 20:42:22 -0700
committerLars Knoll <lars.knoll@qt.io>2017-11-03 09:13:26 +0000
commit525751ea4f24b8e3e2fa37beed47c391926d4319 (patch)
treedabf579c610a446a596d30909d3fa4e9f8c52a13
parent20efefb5f67c932c937b784982ecff0c10da3908 (diff)
Update to new QRandomGenerator APIv5.10.0-beta4
Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r--examples/purchasing/qthangman/hangmangame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/purchasing/qthangman/hangmangame.cpp b/examples/purchasing/qthangman/hangmangame.cpp
index 7358bd1..6852d77 100644
--- a/examples/purchasing/qthangman/hangmangame.cpp
+++ b/examples/purchasing/qthangman/hangmangame.cpp
@@ -232,7 +232,7 @@ void HangmanGame::chooseRandomWord()
if (m_wordList.isEmpty())
return;
- m_word = m_wordList.at(QRandomGenerator::bounded(m_wordList.size()));
+ m_word = m_wordList.at(QRandomGenerator::global()->bounded(m_wordList.size()));
emit wordChanged();
}