diff options
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h')
-rw-r--r-- | sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h b/sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h new file mode 100644 index 000000000..fcbb6395d --- /dev/null +++ b/sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h @@ -0,0 +1,21 @@ +// Copyright (C) 2021 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 PYSIDEQMLMETACALLERROR_P_H +#define PYSIDEQMLMETACALLERROR_P_H + +#include <optional> + +#include <QtCore/qtclasshelpermacros.h> + +QT_FORWARD_DECLARE_CLASS(QObject) + +namespace PySide::Qml { + +// Helper for SignalManager::qt_metacall(): +// Bubbles Python exceptions up to the Javascript engine, if called from one +std::optional<int> qmlMetaCallErrorHandler(QObject *object); + +} // namespace PySide::Qml + +#endif // PYSIDEQMLMETACALLERROR_P_H |