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
12
QT_BEGIN_NAMESPACE
13
14
namespace
{
15
struct
QVariantWidgetsHelper
:
QMetaTypeModuleHelper
16
{
17
static
const
QtPrivate
::
QMetaTypeInterface
*
interfaceForType
(
int
type)
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
30
void
qRegisterWidgetsVariant
()
31
{
32
qMetaTypeWidgetsHelper = QMetaTypeModuleHelper{
33
&QVariantWidgetsHelper::interfaceForType,
34
};
35
}
36
Q_CONSTRUCTOR_FUNCTION(qRegisterWidgetsVariant)
37
38
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
qRegisterWidgetsVariant
void qRegisterWidgetsVariant()
Definition
qwidgetsvariant.cpp:30
QT_BEGIN_NAMESPACE::QVariantWidgetsHelper
Definition
qwidgetsvariant.cpp:16
QT_BEGIN_NAMESPACE::QVariantWidgetsHelper::interfaceForType
static const QtPrivate::QMetaTypeInterface * interfaceForType(int type)
Definition
qwidgetsvariant.cpp:17
qtbase
src
widgets
kernel
qwidgetsvariant.cpp
Generated on
for Qt by
1.14.0