summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-14 14:14:18 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-14 14:21:08 -0300
commit82d086285aa500ee54323d04996b8bf0acf5bd09 (patch)
tree9e97d7ea99ca04de324af0726873068606960c61
parent45517664ee498074e5ea6e066897e5d9f8ea7262 (diff)
downloadpyside-82d086285aa500ee54323d04996b8bf0acf5bd09.tar.gz
pyside-82d086285aa500ee54323d04996b8bf0acf5bd09.tar.xz
pyside-82d086285aa500ee54323d04996b8bf0acf5bd09.zip
Fixes the QSettings related QVariant's save/load bug.
-rw-r--r--libpyside/signalmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 4bcfae5..81ce14d 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -250,6 +250,8 @@ SignalManager::SignalManager() : m_d(new SignalManagerPrivate)
// Register PyObject type to use in queued signal and slot connections
qRegisterMetaType<PyObjectWrapper>(PYTHON_TYPE);
qRegisterMetaTypeStreamOperators<PyObjectWrapper>(PYTHON_TYPE);
+ qRegisterMetaTypeStreamOperators<PyObjectWrapper>("PyObjectWrapper");
+ qRegisterMetaTypeStreamOperators<PyObjectWrapper>("PySide::PyObjectWrapper");
SbkConverter* converter = Shiboken::Conversions::createConverter(&PyBaseObject_Type, 0);
Shiboken::Conversions::setCppPointerToPythonFunction(converter, PyObject_PTR_CppToPython_PyObject);