blob: b63059b0e6126ba1e99407f61d4c48394cc026c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef COMMONTYPES_H
#define COMMONTYPES_H
#include <QtQuick/qquickitem.h>
#include <QtQml/qqmlregistration.h>
#include <QtQml/private/qv4engine_p.h>
class MyType : public QQuickItem
{
Q_OBJECT
QML_ELEMENT
public:
MyType(QQuickItem *parent = nullptr) : QQuickItem(parent) {}
Q_INVOKABLE void name(QQmlV4FunctionPtr) const {}
};
#endif // COMMONTYPES_H
|