diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-19 17:36:08 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:03 -0300 |
commit | 7c771c8e67993f59fe05227a37384fd75ed34c37 (patch) | |
tree | 1b399893c15b714d22e0de2caf98b67e42f575fc | |
parent | ec454186de25a3a032e7cbf965511913f0b23040 (diff) |
Used SignalManager function to retrieve MetaObject
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QMetaObject*>(Shiboken::Object::getTypeUserData(pySelf));" << endl; + s << INDENT << "return PySide::SignalManager::retriveMetaObject(reinterpret_cast<PyObject*>(pySelf));" << endl; s << '}' << endl << endl; // qt_metacall function |