qt5base-lts/examples/widgets/itemviews
Thiago Macieira 19b0ce5daa Change almost all other uses of qrand() to QRandomGenerator
The vast majority is actually switched to QRandomGenerator::bounded(),
which gives a mostly uniform distribution over the [0, bound)
range. There are very few floating point cases left, as many of those
that did use floating point did not need to, after all. (I did leave
some that were too ugly for me to understand)

This commit also found a couple of calls to rand() instead of qrand().

This commit does not include changes to SSL code that continues to use
qrand() (job for someone else):
  src/network/ssl/qsslkey_qt.cpp
  src/network/ssl/qsslsocket_mac.cpp
  tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp

Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-11-08 09:14:03 +00:00
..
addressbook Address Book example: Correctly update "Edit entry" and "Remove entry" actions 2017-10-23 14:38:22 +00:00
basicsortfiltermodel examples: Use QOverload to select overloaded signals and slots 2016-12-22 14:54:55 +00:00
chart Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
coloreditorfactory Unify license header usage. 2016-03-29 10:20:03 +00:00
combowidgetmapper Unify license header usage. 2016-03-29 10:20:03 +00:00
customsortfiltermodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
dirview Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-19 12:55:27 +02:00
editabletreemodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
fetchmore Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
frozencolumn Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
interview Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
pixelator Convert features.printdialog to QT_[REQUIRE_]CONFIG 2017-05-30 17:21:26 +00:00
puzzle Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
simpledommodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
simpletreemodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
simplewidgetmapper Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxdelegate Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
spreadsheet Convert features.printdialog to QT_[REQUIRE_]CONFIG 2017-05-30 17:21:26 +00:00
stardelegate Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
storageview Polish the StorageView example 2017-09-20 12:19:39 +00:00
itemviews.pro Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

Item views are widgets that typically display data sets. Qt 4's model/view
framework lets you handle large data sets by separating the underlying data
from the way it is represented to the user, and provides support for
customized rendering through the use of delegates.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.