aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-30 12:01:10 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-31 15:09:15 -0300
commit5bd8147956aa7b54af96ce4a0ec9f00afb8fcf88 (patch)
treeee8cd85236dd5b3fee52d8510c685a86288b9e18 /PySide/QtGui
parent718dd06ecd8443bc556f68bb17f7958e891ee48b (diff)
Adapt to changes in libshiboken
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/glue/qapplication_init.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/PySide/QtGui/glue/qapplication_init.cpp b/PySide/QtGui/glue/qapplication_init.cpp
index 554641d46..20e487b70 100644
--- a/PySide/QtGui/glue/qapplication_init.cpp
+++ b/PySide/QtGui/glue/qapplication_init.cpp
@@ -30,9 +30,12 @@ int SbkQApplication_Init(PyObject* self, PyObject* args, PyObject*)
return -1;
}
- SbkBaseWrapper_setCptr(self, new QApplication(QApplicationArgCount, QApplicationArgValues));
+ void* cptr = new QApplication(QApplicationArgCount, QApplicationArgValues);
+ Shiboken::setCppPointer(reinterpret_cast<SbkBaseWrapper*>(self),
+ Shiboken::SbkType<QApplication>(),
+ cptr);
SbkBaseWrapper_setValidCppObject(self, 1);
- Shiboken::BindingManager::instance().registerWrapper(reinterpret_cast<SbkBaseWrapper*>(self));
+ Shiboken::BindingManager::instance().registerWrapper(reinterpret_cast<SbkBaseWrapper*>(self), cptr);
// Verify if qApp is in main module
const char QAPP_MACRO[] = "qApp";