Increased global receiver maximun slots support.

Fixes bug #312.

Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
renatofilho 2010-09-14 13:03:39 -03:00
commit 42f9176669
2 changed files with 41 additions and 9 deletions

View file

@ -32,6 +32,7 @@
#include "signalmanager.h"
#define RECEIVER_DESTROYED_SLOT_NAME "__receiverDestroyed__(QObject*)"
#define GLOBAL_RECEIVER_CLASS_NAME "__GlobalReceiver__"
namespace PySide
{
@ -108,7 +109,7 @@ DynamicSlotData::~DynamicSlotData()
GlobalReceiver::GlobalReceiver()
: m_metaObject("GlobalReceiver", &QObject::staticMetaObject)
: m_metaObject(GLOBAL_RECEIVER_CLASS_NAME, &QObject::staticMetaObject)
{
//slot used to be notifyed of object destrouction
m_metaObject.addSlot(RECEIVER_DESTROYED_SLOT_NAME);