aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/state.h
blob: 1afcebc4ea354160518bc8d8c03cc5cb7fc1f821 (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) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef STATE_H
#define STATE_H

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

namespace model {
namespace Window {
Q_NAMESPACE
QML_NAMED_ELEMENT(WindowState)
enum State {
    OPEN,
    TILT,
    UNCALIBRATED,
    CLOSE
};
Q_ENUM_NS(State)
}

class WindowInstance : public QObject
{
    Q_PROPERTY(int count READ count CONSTANT FINAL)
    Q_OBJECT
    QML_ELEMENT
public:
    int count() { return 11; }
};

}

#endif // STATE_H