qt5base-lts/examples/corelib
Olivier Goffart 73d1476fb1 Replace most use of QVariant::type and occurrences of QVariant::Type
I made a clazy automated check that replaced the use of QVariant::Type
by the equivalent in QMetaType.
This has been deprecated since Qt 5.0, but many uses were not yet removed.

In addition, there was some manual changes to fix the compilation errors.

Adapted the Private API of QDateTimeParser and QMimeDataPrivate
and adjust QDateTimeEdit and QSpinBox.

QVariant(QVariant::Invalid) in qstylesheet made no sense.

But note that in QVariant::save, we actually wanted to use the non-user type.

In the SQL module, many changes were actually reverted because the API
still expects QVarient::Type.

Change-Id: I98c368490e4ee465ed3a3b63bda8b8eaa50ea67e
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-01-23 16:46:51 +01:00
..
ipc Cleanup QtCore examples 2019-02-06 22:11:27 +00:00
mimetypes Replace usages of QVariant::value by qvariant_cast 2019-12-15 12:30:52 +01:00
serialization Replace most use of QVariant::type and occurrences of QVariant::Type 2020-01-23 16:46:51 +01:00
threads Fix Mandelbrot Example documentation with regards to qRegisterMetaType() 2020-01-13 12:50:03 +01:00
tools Replace usages of QVariant::value by qvariant_cast 2019-12-15 12:30:52 +01:00
corelib.pro threads: disable threads examples for nothread builds 2018-12-10 05:36:08 +00:00