Fixed slot registration during the meta object constructor.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
5b0606009d
commit
e9b0f3e4ae
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ DynamicQMetaObject* DynamicQMetaObject::createBasedOn(PyObject* pyObj, PyTypeObj
|
||||||
QString sig(PyString_AsString(signature));
|
QString sig(PyString_AsString(signature));
|
||||||
//slot the slot type and signature
|
//slot the slot type and signature
|
||||||
QStringList slotInfo = sig.split(" ", QString::SkipEmptyParts);
|
QStringList slotInfo = sig.split(" ", QString::SkipEmptyParts);
|
||||||
int index = base->indexOfSlot(slotInfo[0].toAscii());
|
int index = base->indexOfSlot(qPrintable(slotInfo[1]));
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
mo->addSlot(slotInfo[1].toAscii(), slotInfo[0].toAscii());
|
mo->addSlot(slotInfo[1].toAscii(), slotInfo[0].toAscii());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue