Don't export symbols that don't need to be exported and rename many functions.
This commit is contained in:
parent
1a10971865
commit
a43eafaae4
7 changed files with 319 additions and 284 deletions
|
|
@ -21,9 +21,9 @@
|
|||
*/
|
||||
|
||||
#include <shiboken.h>
|
||||
#include "dynamicqmetaobject_p.h"
|
||||
|
||||
#include <QString>
|
||||
#include "dynamicqmetaobject_p.h"
|
||||
#include "qsignal_p.h"
|
||||
|
||||
#define SLOT_DEC_NAME "Slot"
|
||||
|
||||
|
|
@ -41,10 +41,6 @@ extern "C"
|
|||
static int slot_init(PyObject*, PyObject*, PyObject*);
|
||||
static PyObject* slot_call(PyObject*, PyObject*, PyObject*);
|
||||
|
||||
//external qsignal.cpp
|
||||
extern char* get_type_name(PyObject*);
|
||||
|
||||
|
||||
// Class Definition -----------------------------------------------
|
||||
static PyTypeObject Slot_Type = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
|
|
@ -124,7 +120,7 @@ int slot_init(PyObject *self, PyObject *args, PyObject *kw)
|
|||
SlotData *data = reinterpret_cast<SlotData*>(self);
|
||||
for(Py_ssize_t i = 0, i_max = PyTuple_Size(args); i < i_max; i++) {
|
||||
PyObject *argType = PyTuple_GET_ITEM(args, i);
|
||||
char *typeName = get_type_name(argType);
|
||||
char *typeName = PySide::getTypeName(argType);
|
||||
if (typeName) {
|
||||
if (data->args) {
|
||||
data->args = reinterpret_cast<char*>(realloc(data->args, (strlen(data->args) + 1 + strlen(typeName)) * sizeof(char*)));
|
||||
|
|
@ -141,7 +137,7 @@ int slot_init(PyObject *self, PyObject *args, PyObject *kw)
|
|||
data->slotName = strdup(argName);
|
||||
|
||||
if (argResult)
|
||||
data->resultType = get_type_name(argResult);
|
||||
data->resultType = PySide::getTypeName(argResult);
|
||||
else
|
||||
data->resultType = strdup("void");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue