diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-08 15:06:52 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:47:56 -0300 |
commit | b4d1a3a4b616dffcd41247dc5584846372083db6 (patch) | |
tree | 30dd46ba82e819a5b639e72752aa45ed682a71e2 /libpyside/dynamicqmetaobject.cpp | |
parent | e76fffc6173a43189b6133873fcc8e310bf6aa48 (diff) |
Add support for extension into PySide properties.
This is used by PySide implementation of QDeclarativeListProperty.
Diffstat (limited to 'libpyside/dynamicqmetaobject.cpp')
-rw-r--r-- | libpyside/dynamicqmetaobject.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libpyside/dynamicqmetaobject.cpp b/libpyside/dynamicqmetaobject.cpp index 1f6ff85a0..4c21a4475 100644 --- a/libpyside/dynamicqmetaobject.cpp +++ b/libpyside/dynamicqmetaobject.cpp @@ -367,12 +367,14 @@ void DynamicQMetaObject::addProperty(const char* propertyName, PyObject* data) return; // retrieve notifyId - PySideProperty* property = reinterpret_cast<PySideProperty*>(data); - const char* signalNotify = PySide::Property::getNotifyName(property); int notifyId = -1; - if (signalNotify) { - QByteArray signalSignature(signalNotify); - notifyId = m_d->m_signals.indexOf(signalNotify); + PySideProperty* property = reinterpret_cast<PySideProperty*>(data); + if (property->d->notify) { + const char* signalNotify = PySide::Property::getNotifyName(property); + if (signalNotify) { + QByteArray signalSignature(signalNotify); + notifyId = m_d->m_signals.indexOf(signalNotify); + } } //search for a empty space |