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
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef DUMMYOBJEKT_H
#define DUMMYOBJEKT_H
#include <QtCore/qobject.h>
#include <QtQml/qqml.h>
#if QT_DEPRECATED_SINCE(6, 4)
class DummyObjekt : public QObject
{
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
public:
enum Test {
TestA = 1,
TestB
};
Q_ENUM(Test)
// Deliberately not default constructible
explicit DummyObjekt(QObject *parent) : QObject(parent) {}
};
#endif
#endif // DUMMYOBJEKT_H
|