From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/scribble-example.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/scribble-example.html') diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index a82937778..b11b09d23 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -157,11 +157,11 @@ protected slots: #include <tqpopupmenu.h> #include <tqintdict.h> -const bool no_writing = FALSE; +const bool no_writing = false; Canvas::Canvas( TQWidget *parent, const char *name ) : TQWidget( parent, name, WStaticContents ), pen( TQt::red, 3 ), polyline(3), - mousePressed( FALSE ), buffer( width(), height() ) + mousePressed( false ), buffer( width(), height() ) { if ((tqApp->argc() > 0) && !buffer.load(tqApp->argv()[1])) @@ -181,18 +181,18 @@ void Canvas::save( const TQString void Canvas::clearScreen() { buffer.fill( colorGroup().base() ); - repaint( FALSE ); + repaint( false ); } void Canvas::mousePressEvent( TQMouseEvent *e ) { - mousePressed = TRUE; + mousePressed = true; polyline[2] = polyline[1] = polyline[0] = e->pos(); } void Canvas::mouseReleaseEvent( TQMouseEvent * ) { - mousePressed = FALSE; + mousePressed = false; } void Canvas::mouseMoveEvent( TQMouseEvent *e ) @@ -279,14 +279,14 @@ void Scribble::slotSave() { TQPopupMenu *menu = new TQPopupMenu( 0 ); TQIntDict<TQString> formats; - formats.setAutoDelete( TRUE ); + formats.setAutoDelete( true ); for ( unsigned int i = 0; i < TQImageIO::outputFormats().count(); i++ ) { TQString str = TQString( TQImageIO::outputFormats().at( i ) ); formats.insert( menu->insertItem( TQString( "%1..." ).arg( str ) ), new TQString( str ) ); } - menu->setMouseTracking( TRUE ); + menu->setMouseTracking( true ); int id = menu->exec( bSave->mapToGlobal( TQPoint( 0, bSave->height() + 1 ) ) ); if ( id != -1 ) { -- cgit v1.2.3