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 /examples/xform/xform.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 'examples/xform/xform.cpp')
-rw-r--r-- | examples/xform/xform.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/xform/xform.cpp b/examples/xform/xform.cpp index 41bfb74d4..6360dcd56 100644 --- a/examples/xform/xform.cpp +++ b/examples/xform/xform.cpp @@ -162,7 +162,7 @@ XFormControl::XFormControl( const TQFont &initialFont, 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)) ); @@ -279,13 +279,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(); } @@ -447,20 +447,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 ); |