1 #include "SUIT_PopupClient.h"
6 Class: SUIT_PopupClient [public]
7 Descr: Base class for instances which creates popup menu on QContextMenuEvent
10 SUIT_PopupClient::SUIT_PopupClient()
15 SUIT_PopupClient::~SUIT_PopupClient()
20 bool SUIT_PopupClient::connectPopupRequest( QObject* reciever, const char* slot )
22 if ( !reciever || !slot )
25 mySignal = new Signal();
26 return QObject::connect( mySignal, SIGNAL( contextMenuRequest( SUIT_PopupClient*, QContextMenuEvent* ) ),
30 bool SUIT_PopupClient::disconnectPopupRequest( QObject* reciever, const char* slot )
32 if ( !reciever || !slot || !mySignal )
34 return QObject::disconnect( mySignal, SIGNAL( contextMenuRequest( SUIT_PopupClient*, QContextMenuEvent* ) ),
38 void SUIT_PopupClient::contextMenuRequest( QContextMenuEvent* e )
41 mySignal->sendSignal( this, e );
45 Class: SUIT_PopupClient::Signal [internal]
46 Descr: invoke signal which is connected to reciever in SUIT_PopupClient
49 SUIT_PopupClient::Signal::Signal()
54 SUIT_PopupClient::Signal::~Signal()
57 void SUIT_PopupClient::Signal::sendSignal( SUIT_PopupClient* client, QContextMenuEvent* e )
59 emit contextMenuRequest( client, e );