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
qqmltypemoduleversion_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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
4
5#ifndef QQMLTYPEMODULEVERSION_P_H
6#define QQMLTYPEMODULEVERSION_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQml/qtqmlglobal.h>
20#include <QtQml/private/qqmltype_p.h>
21#include <QtQml/private/qqmltypemodule_p.h>
22#include <QtCore/qversionnumber.h>
23
24QT_BEGIN_NAMESPACE
25
26class QQmlTypeModule;
27class QQmlType;
28class QHashedStringRef;
29
30namespace QV4 {
31struct String;
32}
33
35{
36public:
41
42 template<typename String>
43 QQmlType type(String name) const
44 {
45 if (!m_module)
46 return QQmlType();
47 return m_module->type(name, QTypeRevision::isValidSegment(m_minor)
48 ? QTypeRevision::fromMinorVersion(m_minor)
49 : QTypeRevision());
50 }
51
52private:
53 QQmlTypeModule *m_module;
54 quint8 m_minor;
55};
56
57QT_END_NAMESPACE
58
59#endif // QQMLTYPEMODULEVERSION_P_H
QQmlType type(String name) const
QQmlTypeModuleVersion & operator=(const QQmlTypeModuleVersion &)
QQmlTypeModuleVersion(QQmlTypeModule *, QTypeRevision)
QQmlTypeModuleVersion(const QQmlTypeModuleVersion &)
Combined button and popup list for selecting options.
Definition qjsvalue.h:24