diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-18 15:18:06 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:36 -0300 |
commit | 304a2658408e81e8bfb4c37a9e1996907f5ab94f (patch) | |
tree | 4e2a8175608b2bd93b9d14baf6f9be9221144cd0 /libpyside | |
parent | e6f0d69532fffb19befde41ab6155ca87a0390a0 (diff) |
Renamed PySide.Signal instance class to PySide.SignalInstance.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r-- | libpyside/pysidesignal.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpyside/pysidesignal.cpp b/libpyside/pysidesignal.cpp index 6fe6bdcb4..1bdaa73dc 100644 --- a/libpyside/pysidesignal.cpp +++ b/libpyside/pysidesignal.cpp @@ -28,6 +28,7 @@ #include <QDebug> #define SIGNAL_CLASS_NAME "Signal" +#define SIGNAL_INSTANCE_NAME "SignalInstance" #define QT_SIGNAL_SENTINEL '2' @@ -133,7 +134,7 @@ static PyMappingMethods SignalInstance_as_mapping = { PyTypeObject PySideSignalInstanceType = { PyObject_HEAD_INIT(0) /*ob_size*/ 0, - /*tp_name*/ "PySide.QtCore."SIGNAL_CLASS_NAME, + /*tp_name*/ "PySide.QtCore."SIGNAL_INSTANCE_NAME, /*tp_basicsize*/ sizeof(PySideSignalInstance), /*tp_itemsize*/ 0, /*tp_dealloc*/ 0, @@ -152,7 +153,7 @@ PyTypeObject PySideSignalInstanceType = { /*tp_setattro*/ 0, /*tp_as_buffer*/ 0, /*tp_flags*/ Py_TPFLAGS_DEFAULT, - /*tp_doc*/ SIGNAL_CLASS_NAME, + /*tp_doc*/ SIGNAL_INSTANCE_NAME, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, @@ -285,7 +286,7 @@ PyObject* signalInstanceConnect(PyObject* self, PyObject* args, PyObject* kwds) static const char *kwlist[] = {"slot", "type", 0}; if (!PyArg_ParseTupleAndKeywords(args, kwds, - "O|O:"SIGNAL_CLASS_NAME, (char**) kwlist, &slot, &type)) + "O|O:"SIGNAL_INSTANCE_NAME, (char**) kwlist, &slot, &type)) return 0; PySideSignalInstance *source = reinterpret_cast<PySideSignalInstance*>(self); |