##// END OF EJS Templates
performance improvement (merged from MeVisLab PythonQt)...
florianlink -
r198:0dcd933258e0
parent child
Show More
@@ -416,8 +416,11 PyObject* PythonQtPrivate::wrapPtr(void* ptr, const QByteArray& name)
416 QObject* qptr = (QObject*)ptr;
416 QObject* qptr = (QObject*)ptr;
417 // if the object is a derived object, we want to switch the class info to the one of the derived class:
417 // if the object is a derived object, we want to switch the class info to the one of the derived class:
418 if (name!=(qptr->metaObject()->className())) {
418 if (name!=(qptr->metaObject()->className())) {
419 registerClass(qptr->metaObject());
420 info = _knownClassInfos.value(qptr->metaObject()->className());
419 info = _knownClassInfos.value(qptr->metaObject()->className());
420 if (!info) {
421 registerClass(qptr->metaObject());
422 info = _knownClassInfos.value(qptr->metaObject()->className());
423 }
421 }
424 }
422 wrap = createNewPythonQtInstanceWrapper(qptr, info);
425 wrap = createNewPythonQtInstanceWrapper(qptr, info);
423 // mlabDebugConst("MLABPython","new qobject wrapper added " << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1());
426 // mlabDebugConst("MLABPython","new qobject wrapper added " << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1());
General Comments 0
You need to be logged in to leave comments. Login now