diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-13 10:59:48 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:17:19 +0200 |
commit | 1d7a9fc9b4f64a5dd643e0ebfb5057b4b30236b8 (patch) | |
tree | a416e17b6fd8b18682bc3e265504b03d872c38b2 /src/widgets/kernel/qwidgetsvariant.cpp | |
parent | f44d2ea1cc14587ab8f0ba3a36f10ab3bee34504 (diff) |
Add a metatype helper class for Qt Core
This helps get better symmetry with the other modules,
and to unify the code paths for both conversion and
retrieving the interface for static types.
Change-Id: Icbd20de2563f36e3de20d826323acd057734abfb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetsvariant.cpp')
-rw-r--r-- | src/widgets/kernel/qwidgetsvariant.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/widgets/kernel/qwidgetsvariant.cpp b/src/widgets/kernel/qwidgetsvariant.cpp index 935a53935f..b98a83887f 100644 --- a/src/widgets/kernel/qwidgetsvariant.cpp +++ b/src/widgets/kernel/qwidgetsvariant.cpp @@ -64,11 +64,8 @@ static const struct : QMetaTypeModuleHelper } // namespace -extern Q_CORE_EXPORT const QMetaTypeModuleHelper *qMetaTypeWidgetsHelper; - void qRegisterWidgetsVariant() { - qRegisterMetaType<QWidget*>(); qMetaTypeWidgetsHelper = &qVariantWidgetsHelper; } Q_CONSTRUCTOR_FUNCTION(qRegisterWidgetsVariant) |