Implement signal->signal connection.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
1613ca7080
commit
3b422b2d97
4 changed files with 51 additions and 16 deletions
|
|
@ -33,11 +33,19 @@
|
|||
*/
|
||||
|
||||
#include "signalsignalconnection.h"
|
||||
#include <QDebug>
|
||||
#include "signalmanager.h"
|
||||
|
||||
using namespace PySide;
|
||||
|
||||
void SignalSignalConnection::trigger(PyObject* args)
|
||||
SignalSignalConnection::SignalSignalConnection(QObject* source, const char* signal, QObject* receiver, const char* otherSignal, Qt::ConnectionType connectionType)
|
||||
: AbstractQObjectConnection(source, signal, connectionType), m_receiver(receiver), m_signal(otherSignal)
|
||||
{
|
||||
|
||||
m_signal.prepend('2');
|
||||
}
|
||||
|
||||
void SignalSignalConnection::trigger(PyObject* args)
|
||||
{
|
||||
SignalManager::instance().emitSignal(m_receiver, m_signal.constData(), args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue