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/accessible/widgets/tqaccessiblemenu.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/accessible/widgets/tqaccessiblemenu.cpp')
-rw-r--r-- | plugins/src/accessible/widgets/tqaccessiblemenu.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/src/accessible/widgets/tqaccessiblemenu.cpp b/plugins/src/accessible/widgets/tqaccessiblemenu.cpp index 8b7c72631..c7d7670a6 100644 --- a/plugins/src/accessible/widgets/tqaccessiblemenu.cpp +++ b/plugins/src/accessible/widgets/tqaccessiblemenu.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; } |