pysideqmlmetacallerror_p.h 586 B

123456789101112131415161718192021
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef PYSIDEQMLMETACALLERROR_P_H
  4. #define PYSIDEQMLMETACALLERROR_P_H
  5. #include <optional>
  6. #include <QtCore/qtclasshelpermacros.h>
  7. QT_FORWARD_DECLARE_CLASS(QObject)
  8. namespace PySide::Qml {
  9. // Helper for SignalManager::qt_metacall():
  10. // Bubbles Python exceptions up to the Javascript engine, if called from one
  11. std::optional<int> qmlMetaCallErrorHandler(QObject *object);
  12. } // namespace PySide::Qml
  13. #endif // PYSIDEQMLMETACALLERROR_P_H