aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/cpptypes/deferredpropertytypes.cpp
blob: 1487dbcf1586b8aa1c6ae92c189d629f014873e1 (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "deferredpropertytypes.h"

QQuickItem *TypeWithDeferredProperty::deferredProperty() const
{
    return m_deferredProperty;
}

void TypeWithDeferredProperty::setDeferredProperty(QQuickItem *value)
{
    if (m_deferredProperty != value)
        m_deferredProperty = value;
}

QBindable<QQuickItem *> TypeWithDeferredProperty::bindableDeferredProperty()
{
    return QBindable<QQuickItem *>(&m_deferredProperty);
}

TestTypeAttachedWithDeferred *DeferredAttached::qmlAttachedProperties(QObject *parent)
{
    return new TestTypeAttachedWithDeferred(parent);
}