aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideqenum.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpyside/pysideqenum.h')
-rw-r--r--sources/pyside6/libpyside/pysideqenum.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/pysideqenum.h b/sources/pyside6/libpyside/pysideqenum.h
index e97db0730..cfc361004 100644
--- a/sources/pyside6/libpyside/pysideqenum.h
+++ b/sources/pyside6/libpyside/pysideqenum.h
@@ -10,6 +10,8 @@
#include <vector>
+#include <QtCore/qbytearray.h>
+
namespace PySide::QEnum {
// PYSIDE-957: Support the QEnum macro
@@ -18,6 +20,11 @@ PYSIDE_API int isFlag(PyObject *);
PYSIDE_API std::vector<PyObject *> resolveDelayedQEnums(PyTypeObject *);
PYSIDE_API void init();
+
+// PYSIDE-2840: For an enum registered in Qt, return the C++ name.
+// Ignore flags here; their underlying enums are of Python type flags anyways.
+PYSIDE_API QByteArray getTypeName(PyTypeObject *type);
+
} // namespace PySide::QEnum
#endif