diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/xform-example.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/xform-example.html')
-rw-r--r-- | doc/html/xform-example.html | 16 |
1 files changed, 8 insertions, 8 deletions
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-><a href="tqbuttongroup.html#insert">insert</a>(rb_pic,2); rb_txt-><a href="tqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Text") ); rb_img-><a href="tqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Image") ); -<a name="x1249"></a> rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); +<a name="x1249"></a> rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(true); rb_pic-><a href="tqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Picture") ); <a name="x1221"></a> <a href="tqobject.html#connect">connect</a>( bg, TQ_SIGNAL(<a href="tqbuttongroup.html#clicked">clicked</a>(int)), TQ_SLOT(changeMode(int)) ); @@ -318,13 +318,13 @@ void <a name="f403"></a>XFormControl::changeMode(int m) newMtx(); if ( mode == Text ) { <a name="x1277"></a> optionals-><a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(0); - rb_txt-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_txt-><a href="tqradiobutton.html#setChecked">setChecked</a>(true); } else { optionals-><a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(1); if ( mode == Image ) - rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(true); else - rb_pic-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_pic-><a href="tqradiobutton.html#setChecked">setChecked</a>(true); } <a name="x1217"></a> tqApp-><a href="tqapplication.html#flushX">flushX</a>(); } @@ -486,20 +486,20 @@ private: void <a name="f395"></a>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; <a href="tqpixmap.html">TQPixmap</a> pm; <a name="x1247"></a> if ( pm.<a href="tqpixmap.html#load">load</a>( "image.any" ) ) sx->setPixmap( pm ); return; } if ( m == Picture && first_p ) { - first_p = FALSE; + first_p = false; <a href="tqpicture.html">TQPicture</a> p; <a name="x1244"></a> if (p.<a href="tqpicture.html#load">load</a>( "picture.any" )) sx->setPicture( p ); |