Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4
#include "
qvariant.h
"
5
6
#include "
qsizepolicy.h
"
7
#include "
qwidget.h
"
8
9
#include <private/qmetatype_p.h>
10
11
QT_BEGIN_NAMESPACE
12
13
namespace
{
14
15
// NOLINTNEXTLINE(cppcoreguidelines-virtual-class-destructor): this is not a base class
16
static
constexpr
struct :
QMetaTypeModuleHelper
17
{
18
const
QtPrivate::QMetaTypeInterface
*
interfaceForType
(
int
type
)
const override
{
19
switch
(
type
) {
20
QT_FOR_EACH_STATIC_WIDGETS_CLASS
(
QT_METATYPE_CONVERT_ID_TO_TYPE
)
21
default
:
return
nullptr
;
22
}
23
}
24
} qVariantWidgetsHelper;
25
26
27
#undef QT_IMPL_METATYPEINTERFACE_WIDGETS_TYPES
28
29
}
// namespace
30
31
void
qRegisterWidgetsVariant
()
32
{
33
qMetaTypeWidgetsHelper
= &qVariantWidgetsHelper;
34
}
35
Q_CONSTRUCTOR_FUNCTION
(
qRegisterWidgetsVariant
)
36
37
QT_END_NAMESPACE
QMetaTypeModuleHelper
Definition
qmetatype_p.h:42
QtPrivate::QMetaTypeInterface
Definition
qmetatype.h:268
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Q_CONSTRUCTOR_FUNCTION
Q_CONSTRUCTOR_FUNCTION(qt_apple_check_os_version)
qMetaTypeWidgetsHelper
Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelper * qMetaTypeWidgetsHelper
Definition
qmetatype.cpp:1663
interfaceForType
static const QtPrivate::QMetaTypeInterface * interfaceForType(int typeId)
Definition
qmetatype.cpp:3250
QT_FOR_EACH_STATIC_WIDGETS_CLASS
#define QT_FOR_EACH_STATIC_WIDGETS_CLASS(F)
Definition
qmetatype.h:185
QT_METATYPE_CONVERT_ID_TO_TYPE
#define QT_METATYPE_CONVERT_ID_TO_TYPE(MetaTypeName, MetaTypeId, RealName)
Definition
qmetatype_p.h:217
type
GLenum type
Definition
qopengles2ext.h:150
qsizepolicy.h
qvariant.h
qwidget.h
qRegisterWidgetsVariant
void qRegisterWidgetsVariant()
Definition
qwidgetsvariant.cpp:31
qtbase
src
widgets
kernel
qwidgetsvariant.cpp
Generated by
1.10.0