qt5base-lts/examples/widgets
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
..
animation Sub-Attaq: Fix compilation with -no-opengl 2019-11-18 15:45:41 +01:00
desktop Doc: Correct qdoc compilation errors qtbase 2020-01-09 02:33:08 +01:00
dialogs Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
doc Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-18 01:00:08 +01:00
draganddrop QtWidgets/D&D/dropsite example: Add copy functionality 2019-09-05 10:50:49 +02:00
effects Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
gallery Add a widget gallery example 2020-01-09 13:52:25 +01:00
gestures Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
graphicsview Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-18 01:00:08 +01:00
itemviews Replace most use of QVariant::type and occurrences of QVariant::Type 2020-01-23 16:46:51 +01:00
layouts Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
mac macOS: Make QMacNativeWidget example more usable 2017-02-12 12:29:55 +00:00
mainwindows Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
painting Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
qnx/foreignwindows Basic foreign window support for QNX 2019-05-01 13:49:18 +00:00
richtext Prepare for deprecating the QDesktopWidget 2019-10-15 20:09:29 +02:00
scroller Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
statemachine Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
tools Replace most use of QVariant::type and occurrences of QVariant::Type 2020-01-23 16:46:51 +01:00
touch Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
tutorials Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
widgets Unify application palette handling between QGuiApplication and QApplication 2020-01-13 16:53:05 +01:00
windowcontainer Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
widgets.pro Add a widget gallery example 2020-01-09 13:52:25 +01:00