aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/pysideproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpyside/pysideproperty.cpp')
-rw-r--r--libpyside/pysideproperty.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libpyside/pysideproperty.cpp b/libpyside/pysideproperty.cpp
index fb9116557..5f11d36d8 100644
--- a/libpyside/pysideproperty.cpp
+++ b/libpyside/pysideproperty.cpp
@@ -205,7 +205,7 @@ void init(PyObject* module)
PyModule_AddObject(module, QPROPERTY_CLASS_NAME, ((PyObject*)&PySidePropertyType));
}
-bool isPropertyType(PyObject* pyObj)
+bool checkType(PyObject* pyObj)
{
if (pyObj) {
return PyType_IsSubtype(pyObj->ob_type, &PySidePropertyType);
@@ -213,6 +213,11 @@ bool isPropertyType(PyObject* pyObj)
return false;
}
+bool isPropertyType(PyObject* pyObj)
+{
+ return checkType(pyObj);
+}
+
int setValue(PySideProperty* self, PyObject* source, PyObject* value)
{
PyObject* fset = self->d->fset;