aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/registrationmacros/types.h
blob: 3c365cc2fdea7659750ff283cfcf571336185db1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef TYPES_H
#define TYPES_H

#include <qqmlregistration.h>
#include <QObject>

class Test : public QObject {
    Q_OBJECT

    QML_ELEMENT
    QML_ADDED_IN_VERSION(1, 1)
    QML_EXTRA_VERSION(2, 0)
    QML_EXTRA_VERSION(3, 0)

public:
    Q_INVOKABLE bool check() const;
};


#endif