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:
parent
e1620385d5
commit
20a11e28b5
@ -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);
|
9
3rdparty/pythonqt/src/PythonQt.cpp
vendored
9
3rdparty/pythonqt/src/PythonQt.cpp
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user