1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 04:19:55 +01:00

Remove the embedded-struct-names patch - we don't have nested structs any more

This commit is contained in:
David Sansome 2011-05-22 15:22:56 +00:00
parent e1620385d5
commit 20a11e28b5
2 changed files with 3 additions and 31 deletions

View File

@ -1,25 +0,0 @@
diff --git a/3rdparty/pythonqt/src/PythonQt.cpp b/3rdparty/pythonqt/src/PythonQt.cpp
index f97bdf1..53cd197 100644
--- a/3rdparty/pythonqt/src/PythonQt.cpp
+++ b/3rdparty/pythonqt/src/PythonQt.cpp
@@ -1144,14 +1144,17 @@ bool PythonQtPrivate::addParentClass(const char* typeName, const char* parentTyp
void PythonQtPrivate::registerCPPClass(const char* typeName, const char* parentTypeName, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell, PyObject* module, int typeSlots)
{
- PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeName);
+ QByteArray typeNameCopy(typeName);
+ typeNameCopy.replace("::", "_");
+
+ PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeNameCopy);
if (!info->pythonQtClassWrapper()) {
info->setTypeSlots(typeSlots);
- info->setupCPPObject(typeName);
+ info->setupCPPObject(typeNameCopy);
createPythonQtClassWrapper(info, package, module);
}
if (parentTypeName && strcmp(parentTypeName,"")!=0) {
- addParentClass(typeName, parentTypeName, 0);
+ addParentClass(typeNameCopy, parentTypeName, 0);
}
if (wrapperCreator) {
info->setDecoratorProvider(wrapperCreator);

View File

@ -1144,17 +1144,14 @@ bool PythonQtPrivate::addParentClass(const char* typeName, const char* parentTyp
void PythonQtPrivate::registerCPPClass(const char* typeName, const char* parentTypeName, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell, PyObject* module, int typeSlots)
{
QByteArray typeNameCopy(typeName);
typeNameCopy.replace("::", "_");
PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeNameCopy);
PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeName);
if (!info->pythonQtClassWrapper()) {
info->setTypeSlots(typeSlots);
info->setupCPPObject(typeNameCopy);
info->setupCPPObject(typeName);
createPythonQtClassWrapper(info, package, module);
}
if (parentTypeName && strcmp(parentTypeName,"")!=0) {
addParentClass(typeNameCopy, parentTypeName, 0);
addParentClass(typeName, parentTypeName, 0);
}
if (wrapperCreator) {
info->setDecoratorProvider(wrapperCreator);