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
qqmlabstractdelegatecomponent.cpp
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#include <QtQmlModels/private/qqmlabstractdelegatecomponent_p.h>
6#include <QtQmlModels/private/qqmladaptormodel_p.h>
7
8QT_BEGIN_NAMESPACE
9
10QQmlAbstractDelegateComponent::QQmlAbstractDelegateComponent(QObject *parent)
11 : QQmlComponent(parent)
12{
13}
14
15QQmlAbstractDelegateComponent::~QQmlAbstractDelegateComponent()
16{
17}
18
19QVariant QQmlAbstractDelegateComponent::value(QQmlAdaptorModel *adaptorModel, int row, int column, const QString &role) const
20{
21 if (!adaptorModel)
22 return QVariant();
23 return adaptorModel->value(adaptorModel->indexAt(row, column), role);
24}
25
26QT_END_NAMESPACE
27
28#include "moc_qqmlabstractdelegatecomponent_p.cpp"