Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwidgetsvariant.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#include "qvariant.h"
6
7#include "qsizepolicy.h"
8#include "qwidget.h"
9
10#include <private/qmetatype_p.h>
11
13
14namespace {
16{
18 {
19 switch (type) {
20 QT_FOR_EACH_STATIC_WIDGETS_CLASS(QT_METATYPE_CONVERT_ID_TO_TYPE)
21 default: return nullptr;
22 }
23 }
24};
25
26#undef QT_IMPL_METATYPEINTERFACE_WIDGETS_TYPES
27
28} // namespace
29
31{
32 qMetaTypeWidgetsHelper = QMetaTypeModuleHelper{
33 &QVariantWidgetsHelper::interfaceForType,
34 };
35}
36Q_CONSTRUCTOR_FUNCTION(qRegisterWidgetsVariant)
37
38QT_END_NAMESPACE
void qRegisterWidgetsVariant()
static const QtPrivate::QMetaTypeInterface * interfaceForType(int type)