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
qqmlinstantiator_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLINSTANTIATOR_P_P_H
5#define QQMLINSTANTIATOR_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qqmlinstantiator_p.h"
19#include <QObject>
20#include <private/qobject_p.h>
21#include <private/qqmlchangeset_p.h>
22#include <private/qqmlobjectmodel_p.h>
23
24#include <QtCore/qpointer.h>
25
26QT_REQUIRE_CONFIG(qml_object_model);
27
29
30class Q_QMLMODELS_EXPORT QQmlInstantiatorPrivate : public QObjectPrivate
31{
32 Q_DECLARE_PUBLIC(QQmlInstantiator)
33
34public:
36
37 void clear();
38 void regenerate();
39#if QT_CONFIG(qml_delegate_model)
40 void makeModel();
41#endif
42 void _q_createdItem(int, QObject *);
43 void _q_modelUpdated(const QQmlChangeSet &, bool);
44 QObject *modelObject(int index, bool async);
45
46 static QQmlInstantiatorPrivate *get(QQmlInstantiator *instantiator) { return instantiator->d_func(); }
47 static const QQmlInstantiatorPrivate *get(const QQmlInstantiator *instantiator) { return instantiator->d_func(); }
48
51 bool active:1;
52 bool async:1;
53#if QT_CONFIG(qml_delegate_model)
54 bool ownModel:1;
55#endif
60 QVector<QPointer<QObject> > objects;
61};
62
64
65#endif // QQMLCREATOR_P_P_H
\inmodule QtCore
Definition qobject.h:103
The QQmlChangeSet class stores an ordered list of notifications about changes to a linear data set.
The QQmlComponent class encapsulates a QML component definition.
QQmlInstanceModel * instanceModel
static const QQmlInstantiatorPrivate * get(const QQmlInstantiator *instantiator)
static QQmlInstantiatorPrivate * get(QQmlInstantiator *instantiator)
QVector< QPointer< QObject > > objects
\inmodule QtCore
Definition qvariant.h:65
b clear()
Combined button and popup list for selecting options.
GLuint index
[2]
#define QT_REQUIRE_CONFIG(feature)