Replace use of QMetaObject::activate to QObject::qt_metacall.
This is necessary to support signals with default values. Fix bug #624 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
This commit is contained in:
parent
da8c292b69
commit
6a87db2791
1 changed files with 2 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ void SignalManager::addGlobalSlot(const char* slot, PyObject* callback)
|
||||||
static bool emitShortCircuitSignal(QObject* source, int signalIndex, PyObject* args)
|
static bool emitShortCircuitSignal(QObject* source, int signalIndex, PyObject* args)
|
||||||
{
|
{
|
||||||
void* signalArgs[2] = {0, args};
|
void* signalArgs[2] = {0, args};
|
||||||
QMetaObject::activate(source, signalIndex, signalArgs);
|
source->qt_metacall(QMetaObject::InvokeMetaMethod, signalIndex, signalArgs);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -215,7 +215,7 @@ static bool emitNormalSignal(QObject* source, int signalIndex, const char* signa
|
||||||
|
|
||||||
bool ok = i == argsGiven;
|
bool ok = i == argsGiven;
|
||||||
if (ok)
|
if (ok)
|
||||||
QMetaObject::activate(source, signalIndex, signalArgs);
|
source->qt_metacall(QMetaObject::InvokeMetaMethod, signalIndex, signalArgs);
|
||||||
|
|
||||||
delete[] signalArgs;
|
delete[] signalArgs;
|
||||||
delete[] signalValues;
|
delete[] signalValues;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue