aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/qpyqmlparserstatus.h
blob: 24dcdda754b401750e7a6335595a59b1bf6ff673 (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QPYQMLPARSERSTATUS_H
#define QPYQMLPARSERSTATUS_H

#include <QtCore/QObject>
#include <QtQml/QQmlParserStatus>

#ifdef Q_MOC_RUN
Q_DECLARE_INTERFACE(QQmlParserStatus, "org.qt-project.Qt.QQmlParserStatus")
#endif

QT_BEGIN_NAMESPACE

// Inherit from QObject such that QQmlParserStatus can be found at
// a fixed offset (RegisterType::parserStatusCast).
class QPyQmlParserStatus : public QObject, public QQmlParserStatus
{
    Q_OBJECT
    Q_INTERFACES(QQmlParserStatus)
public:
    explicit QPyQmlParserStatus(QObject *parent = nullptr) : QObject(parent) {}
};

QT_END_NAMESPACE

#endif // QPYQMLPARSERSTATUS_H