aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/foreign/foreign.cpp
blob: f78dd472379c4fef9cc47541b8092f7b3796229c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "foreign.h"

int Foreign::things() const
{
    return m_things;
}

void Foreign::setThings(int things)
{
    if (m_things == things)
        return;

    m_things = things;
    emit thingsChanged(m_things);
}