blob: 709233a6c90f4d897b09c8afce99e63eb20e8150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include <QtQmlModels/private/qqmlabstractdelegatecomponent_p.h>
#include <QtQmlModels/private/qqmladaptormodel_p.h>
QT_BEGIN_NAMESPACE
QQmlAbstractDelegateComponent::QQmlAbstractDelegateComponent(QObject *parent)
: QQmlComponent(parent)
{
}
QQmlAbstractDelegateComponent::~QQmlAbstractDelegateComponent()
{
}
QVariant QQmlAbstractDelegateComponent::value(QQmlAdaptorModel *adaptorModel, int row, int column, const QString &role) const
{
if (!adaptorModel)
return QVariant();
return adaptorModel->value(adaptorModel->indexAt(row, column), role);
}
QT_END_NAMESPACE
#include "moc_qqmlabstractdelegatecomponent_p.cpp"
|