Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmladaptormodelenginedata.cpp
Go to the documentation of this file.
1
// Copyright (C) 2023 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
#
include
<
private
/
qqmladaptormodelenginedata_p
.
h
>
6
#
include
<
private
/
qqmldmlistaccessordata_p
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
QQmlAdaptorModelEngineData::QQmlAdaptorModelEngineData(QV4::ExecutionEngine *v4)
11
: v4(v4)
12
{
13
QV4::Scope scope(v4);
14
QV4::ScopedObject proto(scope, v4->newObject());
15
proto->defineAccessorProperty(QStringLiteral(
"index"
), get_index,
nullptr
);
16
proto->defineAccessorProperty(
17
QStringLiteral(
"modelData"
),
18
QQmlDMListAccessorData::get_modelData, QQmlDMListAccessorData::set_modelData);
19
proto->defineAccessorProperty(
20
QString(),
21
QQmlDMListAccessorData::get_modelData, QQmlDMListAccessorData::set_modelData);
22
listItemProto.set(v4, proto);
23
}
24
25
QT_END_NAMESPACE
qtdeclarative
src
qmlmodels
qqmladaptormodelenginedata.cpp
Generated on
for Qt by
1.18.0