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 09:01:42 +0900 |
| commit | 81ade129093a279e6537db25710583fd2bba9427 (patch) | |
| tree | a210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /plugins/src/accessible/widgets/qaccessiblemenu.cpp | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'plugins/src/accessible/widgets/qaccessiblemenu.cpp')
| -rw-r--r-- | plugins/src/accessible/widgets/qaccessiblemenu.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/src/accessible/widgets/qaccessiblemenu.cpp b/plugins/src/accessible/widgets/qaccessiblemenu.cpp index 6a61fa558..3ff0613aa 100644 --- a/plugins/src/accessible/widgets/qaccessiblemenu.cpp +++ b/plugins/src/accessible/widgets/qaccessiblemenu.cpp @@ -46,7 +46,7 @@ int TQAccessiblePopup::controlAt( int x, int y ) const { TQPoint p = popupMenu()->mapFromGlobal( TQPoint( x,y ) ); MyPopupMenu *mp = (MyPopupMenu*)popupMenu(); - return mp->itemAtPos( p, FALSE ) + 1; + return mp->itemAtPos( p, false ) + 1; } int TQAccessiblePopup::navigate( NavDirection direction, int startControl ) const @@ -142,29 +142,29 @@ TQAccessible::State TQAccessiblePopup::state( int control ) const bool TQAccessiblePopup::doDefaultAction( int control ) { if ( !control ) - return FALSE; + return false; int id = popupMenu()->idAt( control -1 ); TQMenuItem *item = popupMenu()->findItem( id ); if ( !item || !item->isEnabled() ) - return FALSE; + return false; popupMenu()->activateItemAt( control - 1); - return TRUE; + return true; } bool TQAccessiblePopup::setFocus( int control ) { if ( !control ) - return FALSE; + return false; int id = popupMenu()->idAt( control -1 ); TQMenuItem *item = popupMenu()->findItem( id ); if ( !item || !item->isEnabled() ) - return FALSE; + return false; popupMenu()->setActiveItem( control - 1 ); - return TRUE; + return true; } @@ -298,26 +298,26 @@ TQAccessible::State TQAccessibleMenuBar::state( int control ) const bool TQAccessibleMenuBar::doDefaultAction( int control ) { if ( !control ) - return FALSE; + return false; int id = menuBar()->idAt( control -1 ); TQMenuItem *item = menuBar()->findItem( id ); if ( !item || !item->isEnabled() ) - return FALSE; + return false; menuBar()->activateItemAt( control - 1); - return TRUE; + return true; } bool TQAccessibleMenuBar::setFocus( int control ) { if ( !control ) - return FALSE; + return false; int id = menuBar()->idAt( control -1 ); TQMenuItem *item = menuBar()->findItem( id ); if ( !item || !item->isEnabled() ) - return FALSE; + return false; - return TRUE; + return true; } |
