aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside/feature_select.h
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-10-14 09:59:10 +0200
committerChristian Tismer <tismer@stackless.com>2020-10-27 13:13:46 +0000
commitdb03fa66435949c4c75658bbdfdaacbeedfa0413 (patch)
tree5c94ce063981982c7a50b3b190e758f202b063a3 /sources/pyside2/libpyside/feature_select.h
parent1d044f467070a040713c9566a8a8de3a56c571e7 (diff)
feature-select: implement class properties
After implementing property objects for PySide, the static properties (properties for static functions) were quite missing, for instance from QtCore.QCoreApplication and QtWidgets.QApplication . This implementation uses the normal Python properties and derives a PySide.ClassProperty class which works almost the same on classes. The static methods had to be mutated to class methods explicitly. That would be automated by PyType_Ready, but here we are doing this after class initialization. Task-number: PYSIDE-1019 Change-Id: Iabe00be18e25881cc7a97507b6fdae3e2d57ff7a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside/feature_select.h')
-rw-r--r--sources/pyside2/libpyside/feature_select.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside2/libpyside/feature_select.h b/sources/pyside2/libpyside/feature_select.h
index 32abffac6..845828a4c 100644
--- a/sources/pyside2/libpyside/feature_select.h
+++ b/sources/pyside2/libpyside/feature_select.h
@@ -48,6 +48,7 @@ namespace Feature {
PYSIDE_API void init();
PYSIDE_API void Select(PyObject *obj);
+PYSIDE_API PyObject *Select(PyTypeObject *type);
} // namespace Feature
} // namespace PySide