aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/convertQJSPrimitiveValueToIntegral.h
blob: 86c7f22478e56b0ae0d9d5e1bc234fc5a73adbb9 (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
28
29
30
31
32
33
34
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef CONVERTQJSPRIMITIVEVALUETOINTEGRAL_H
#define CONVERTQJSPRIMITIVEVALUETOINTEGRAL_H

#include <QtCore/qobject.h>
#include <QtQml/qqml.h>

class Moo485 : public QObject
{
    Q_OBJECT
    QML_ELEMENT

    Q_PROPERTY(int uid READ uid CONSTANT FINAL)

public:
    explicit Moo485(QObject *parent = nullptr) : QObject(parent) { }
    int uid() const { return 4711; }
};

class Foo485 : public QObject
{
    Q_OBJECT
    QML_ELEMENT

    Q_PROPERTY(quint16 uid MEMBER m_uid FINAL)

public:
    explicit Foo485(QObject *parent = nullptr) : QObject(parent) { }
    quint16 m_uid = 0;
};

#endif // CONVERTQJSPRIMITIVEVALUETOINTEGRAL_H