From c03a4800879ab62692e017e01c825ba12a421ad0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 1 Jul 2025 22:09:14 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 2 Signed-off-by: Michele Calgaro --- .../src/accessible/widgets/tqaccessiblemenu.cpp | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'plugins/src/accessible/widgets/tqaccessiblemenu.cpp') 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; } -- cgit v1.2.3