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/xform-example.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/xform-example.html') diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html index f877b8346..c0bf9d896 100644 --- a/doc/html/xform-example.html +++ b/doc/html/xform-example.html @@ -201,7 +201,7 @@ private: bg->insert(rb_pic,2); rb_txt->setText( tr("Text") ); rb_img->setText( tr("Image") ); - rb_img->setChecked(TRUE); + rb_img->setChecked(true); rb_pic->setText( tr("Picture") ); connect( bg, TQ_SIGNAL(clicked(int)), TQ_SLOT(changeMode(int)) ); @@ -318,13 +318,13 @@ void XFormControl::changeMode(int m) newMtx(); if ( mode == Text ) { optionals->raiseWidget(0); - rb_txt->setChecked(TRUE); + rb_txt->setChecked(true); } else { optionals->raiseWidget(1); if ( mode == Image ) - rb_img->setChecked(TRUE); + rb_img->setChecked(true); else - rb_pic->setChecked(TRUE); + rb_pic->setChecked(true); } tqApp->flushX(); } @@ -486,20 +486,20 @@ private: void XFormCenter::newMode( int m ) { - static bool first_i = TRUE; - static bool first_p = TRUE; + static bool first_i = true; + static bool first_p = true; if ( sx->mode() == m ) return; if ( m == Image && first_i ) { - first_i = FALSE; + first_i = false; TQPixmap pm; if ( pm.load( "image.any" ) ) sx->setPixmap( pm ); return; } if ( m == Picture && first_p ) { - first_p = FALSE; + first_p = false; TQPicture p; if (p.load( "picture.any" )) sx->setPicture( p ); -- cgit v1.2.3