diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-10 12:13:27 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-10 12:13:27 -0500 |
commit | d296f1d337dabfeae5191955fdadb874965dbbe9 (patch) | |
tree | 1a4b3b4cca01f2ea77eee2497297219d60e9bbd4 /tqtinterface/qt4/extensions | |
parent | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (diff) | |
download | experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.tar.gz experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.zip |
rename the following methods:
tqparent parent
tqmask mask
Diffstat (limited to 'tqtinterface/qt4/extensions')
-rw-r--r-- | tqtinterface/qt4/extensions/nsplugin/src/qnp.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tqtinterface/qt4/extensions/nsplugin/src/qnp.cpp b/tqtinterface/qt4/extensions/nsplugin/src/qnp.cpp index 5dc6684..1efb75b 100644 --- a/tqtinterface/qt4/extensions/nsplugin/src/qnp.cpp +++ b/tqtinterface/qt4/extensions/nsplugin/src/qnp.cpp @@ -1951,18 +1951,18 @@ void qnpxt_socknot_handler( XtPointer pointer, int *, XtInputId *id ) void TQNPXt::registerSocketNotifier( TQSocketNotifier *notifier ) { - XtInputMask tqmask; + XtInputMask mask; switch ( notifier->type() ) { case TQSocketNotifier::Read: - tqmask = XtInputReadMask; + mask = XtInputReadMask; break; case TQSocketNotifier::Write: - tqmask = XtInputWriteMask; + mask = XtInputWriteMask; break; case TQSocketNotifier::Exception: - tqmask = XtInputExceptMask; + mask = XtInputExceptMask; break; default: @@ -1971,7 +1971,7 @@ void TQNPXt::registerSocketNotifier( TQSocketNotifier *notifier ) } XtInputId id = XtAppAddInput( d->appContext, - notifier->socket(), (XtPointer) tqmask, + notifier->socket(), (XtPointer) mask, qnpxt_socknot_handler, this ); d->socknotDict.insert( id, notifier ); @@ -2035,23 +2035,23 @@ bool TQNPXt::processEvents( ProcessEventsFlags flags ) qnpxt_keep_alive(); - // get the pending event tqmask from Xt and process the next event - XtInputMask pendingtqmask = XtAppPending( d->appContext ); - XtInputMask tqmask = pendingtqmask; - if ( pendingtqmask & XtIMTimer ) { - tqmask &= ~XtIMTimer; + // get the pending event mask from Xt and process the next event + XtInputMask pendingmask = XtAppPending( d->appContext ); + XtInputMask mask = pendingmask; + if ( pendingmask & XtIMTimer ) { + mask &= ~XtIMTimer; // zero timers will starve the Xt X event dispatcher... so // process something *instead* of a timer first... - if ( tqmask != 0 ) - XtAppProcessEvent( d->appContext, tqmask ); + if ( mask != 0 ) + XtAppProcessEvent( d->appContext, mask ); // and process a timer afterwards - tqmask = pendingtqmask & XtIMTimer; + mask = pendingmask & XtIMTimer; } if ( canWait ) XtAppProcessEvent( d->appContext, XtIMAll ); else - XtAppProcessEvent( d->appContext, tqmask ); + XtAppProcessEvent( d->appContext, mask ); int nevents = 0; if ( ! ( flags & ExcludeSocketNotifiers ) ) { @@ -2064,7 +2064,7 @@ bool TQNPXt::processEvents( ProcessEventsFlags flags ) } d->activate_timers = FALSE; - return ( canWait || ( pendingtqmask != 0 ) || nevents > 0 ); + return ( canWait || ( pendingmask != 0 ) || nevents > 0 ); } |