diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 08:53:47 +0900 |
commit | c03a4800879ab62692e017e01c825ba12a421ad0 (patch) | |
tree | 57aeff4300eb9fa64d193569f56b2d98305b49a2 /plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp | |
parent | 030b165ac197ce4c2eb62c7700dc4c10604637aa (diff) | |
download | tqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp')
-rw-r--r-- | plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp index 1a6924afc..99e86ae42 100644 --- a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp +++ b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp @@ -54,9 +54,9 @@ #define TQT_NO_IM_QMULTIINPUTCONTEXT_IMINDEX TQMultiInputContext::TQMultiInputContext() - : TQInputContext(), _slave( 0 ), imIndex( 0 ), cachedFocus( FALSE ), + : TQInputContext(), _slave( 0 ), imIndex( 0 ), cachedFocus( false ), cachedFocusWidget( 0 ), cachedHolderWidget( 0 ), - beIndirectlyConnected( FALSE ), popup( NULL ), currentIMKey( TQString::null ) + beIndirectlyConnected( false ), popup( NULL ), currentIMKey( TQString::null ) { keyDict.setAutoDelete( true ); keyDict.clear(); @@ -93,7 +93,7 @@ TQString TQMultiInputContext::language() #if defined(TQ_WS_X11) bool TQMultiInputContext::x11FilterEvent( TQWidget *keywidget, XEvent *event ) { - return ( slave() ) ? slave()->x11FilterEvent( keywidget, event ) : FALSE; + return ( slave() ) ? slave()->x11FilterEvent( keywidget, event ) : false; } #endif // TQ_WS_X11 @@ -111,16 +111,16 @@ bool TQMultiInputContext::filterEvent( const TQEvent *event ) ( keyevent->state() & TQt::AltButton ) ) { if ( keyevent->key() == TQt::Key_Up ) { changeInputMethod( --imIndex ); - return TRUE; + return true; } else if ( keyevent->key() == TQt::Key_Down ) { changeInputMethod( ++imIndex ); - return TRUE; + return true; } } } #endif - return ( slave() ) ? slave()->filterEvent( event ) : FALSE; + return ( slave() ) ? slave()->filterEvent( event ) : false; } void TQMultiInputContext::reset() @@ -132,14 +132,14 @@ void TQMultiInputContext::reset() void TQMultiInputContext::setFocus() { - cachedFocus = TRUE; + cachedFocus = true; if ( slave() ) slave()->setFocus(); } void TQMultiInputContext::unsetFocus() { - cachedFocus = FALSE; + cachedFocus = false; if ( slave() ) slave()->unsetFocus(); } @@ -180,7 +180,7 @@ void TQMultiInputContext::destroyInputContext() /*! This function is a placeholder for future experiment or extension - such as commit string snooping. set beIndirectlyConnected = TRUE + such as commit string snooping. set beIndirectlyConnected = true to activate this virtual function. */ void TQMultiInputContext::postIMEvent( TQObject *receiver, TQIMEvent *event ) @@ -225,12 +225,12 @@ void TQMultiInputContext::releaseComposingWidget( TQWidget *w ) bool TQMultiInputContext::isComposing() const { - return ( slave() ) ? slave()->isComposing() : FALSE; + return ( slave() ) ? slave()->isComposing() : false; } bool TQMultiInputContext::isPreeditRelocationEnabled() { - return ( slave() ) ? slave()->isPreeditRelocationEnabled() : FALSE; + return ( slave() ) ? slave()->isPreeditRelocationEnabled() : false; } TQInputContext *TQMultiInputContext::slave() |