From 7c771c8e67993f59fe05227a37384fd75ed34c37 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 19 Jul 2011 17:36:08 -0300 Subject: Used SignalManager function to retrieve MetaObject Reviewer: Luciano Wolf Lauro Neto --- generator/cppgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator/cppgenerator.cpp') diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index a0951cac6..0bc3f38d7 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -933,7 +933,7 @@ void CppGenerator::writeMetaObjectMethod(QTextStream& s, const AbstractMetaClass s << "const QMetaObject* " << wrapperClassName << "::metaObject() const" << endl; s << '{' << endl; s << INDENT << "SbkObject* pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);" << endl; - s << INDENT << "return reinterpret_cast(Shiboken::Object::getTypeUserData(pySelf));" << endl; + s << INDENT << "return PySide::SignalManager::retriveMetaObject(reinterpret_cast(pySelf));" << endl; s << '}' << endl << endl; // qt_metacall function -- cgit v1.2.3