|
|
|
@ -2453,6 +2453,16 @@ void TQApplication::aboutTQt()
|
|
|
|
|
\sa postEvent(), notify()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
bool TQApplication::sendEvent( TQObject *receiver, TQEvent *event ) {
|
|
|
|
|
if ( event ) event->spont = FALSE;
|
|
|
|
|
return tqApp ? tqApp->notify( receiver, event ) : FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event ) {
|
|
|
|
|
if ( event ) event->spont = TRUE;
|
|
|
|
|
return tqApp ? tqApp->notify( receiver, event ) : FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
Sends event \a e to \a receiver: \a {receiver}->event(\a e).
|
|
|
|
|
Returns the value that is returned from the receiver's event handler.
|
|
|
|
@ -3452,18 +3462,19 @@ void TQApplication::postEvent( TQObject *receiver, TQEvent *event )
|
|
|
|
|
globalPostedEvents->append( pe );
|
|
|
|
|
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
if ( event->type() == TQEvent::MetaCall ) {
|
|
|
|
|
// Wake up the receiver thread event loop
|
|
|
|
|
TQThread* thread = receiver->contextThreadObject();
|
|
|
|
|
if (thread) {
|
|
|
|
|
if (thread->d) {
|
|
|
|
|
if (thread->d->eventLoop) {
|
|
|
|
|
thread->d->eventLoop->wakeUp();
|
|
|
|
|
}
|
|
|
|
|
// Wake up the receiver thread event loop
|
|
|
|
|
TQThread* thread = receiver->contextThreadObject();
|
|
|
|
|
if (thread) {
|
|
|
|
|
if (thread->d) {
|
|
|
|
|
if (thread->d->eventLoop) {
|
|
|
|
|
thread->d->eventLoop->wakeUp();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( event->type() == TQEvent::MetaCall ) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (currentEventLoop()) {
|
|
|
|
|