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
qqmlmetadependencies.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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
5#include <private/qtqmlglobal_p.h>
6#include <QtQml/qqmlextensionplugin.h>
7
9
10// Prevent the linker from removing those dependencies, so that we don't have to load
11// them from plugins.
12
15#if QT_CONFIG(qml_worker_script)
16void qml_register_types_QtQml_WorkerScript();
17Q_GHS_KEEP_REFERENCE(qml_register_types_QtQml_WorkerScript);
18#endif
19
20bool QQmlMetaDependencies::collect() {
21 volatile auto models = &qml_register_types_QtQml_Models;
22#if QT_CONFIG(qml_worker_script)
23 volatile auto workerScript = &qml_register_types_QtQml_WorkerScript;
24 return models && workerScript;
25#else
26 return models;
27#endif
28}
29
30QT_END_NAMESPACE
Combined button and popup list for selecting options.
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQml_Models)
QT_BEGIN_NAMESPACE void qml_register_types_QtQml_Models()