diff options
Diffstat (limited to 'sources/pyside6/libpyside/pysidesignal.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/pysidesignal.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/pysidesignal.cpp b/sources/pyside6/libpyside/pysidesignal.cpp index faa6fdce1..276da1cad 100644 --- a/sources/pyside6/libpyside/pysidesignal.cpp +++ b/sources/pyside6/libpyside/pysidesignal.cpp @@ -733,6 +733,12 @@ bool checkType(PyObject *pyObj) return false; } +bool checkInstanceType(PyObject *pyObj) +{ + return pyObj != nullptr + && PyType_IsSubtype(Py_TYPE(pyObj), PySideSignalInstanceTypeF()) != 0; +} + void updateSourceObject(PyObject *source) { PyTypeObject *objType = reinterpret_cast<PyTypeObject *>(PyObject_Type(source)); |
