aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlmetacallerror_p.h
blob: fcbb6395db46f603d9efa1f62effbb4626e681be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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