diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-11-26 15:11:22 +0900 |
| commit | b87533f9904c10f24d6b2e8177c00944e3efe15b (patch) | |
| tree | c1106a381c851b51e86004698457aef1211b77be /doc/html/xform-example.html | |
| parent | 894037c3e68e1573a34183d936171f8cda5085f3 (diff) | |
| download | tqt-r14.1.x.tar.gz tqt-r14.1.x.zip | |
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175
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 306d8547f..8a038ddbe 100644 --- a/doc/html/xform-example.html +++ b/doc/html/xform-example.html @@ -202,7 +202,7 @@ private: bg-><a href="ntqbuttongroup.html#insert">insert</a>(rb_pic,2); rb_txt-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Text") ); rb_img-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Image") ); -<a name="x1249"></a> rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); +<a name="x1249"></a> rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(true); rb_pic-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Picture") ); <a name="x1221"></a> <a href="ntqobject.html#connect">connect</a>( bg, TQ_SIGNAL(<a href="ntqbuttongroup.html#clicked">clicked</a>(int)), TQ_SLOT(changeMode(int)) ); @@ -319,13 +319,13 @@ void <a name="f403"></a>XFormControl::changeMode(int m) newMtx(); if ( mode == Text ) { <a name="x1277"></a> optionals-><a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(0); - rb_txt-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_txt-><a href="ntqradiobutton.html#setChecked">setChecked</a>(true); } else { optionals-><a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(1); if ( mode == Image ) - rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(true); else - rb_pic-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_pic-><a href="ntqradiobutton.html#setChecked">setChecked</a>(true); } <a name="x1217"></a> tqApp-><a href="ntqapplication.html#flushX">flushX</a>(); } @@ -487,20 +487,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="ntqpixmap.html">TQPixmap</a> pm; <a name="x1247"></a> if ( pm.<a href="ntqpixmap.html#load">load</a>( "image.any" ) ) sx->setPixmap( pm ); return; } if ( m == Picture && first_p ) { - first_p = FALSE; + first_p = false; <a href="ntqpicture.html">TQPicture</a> p; <a name="x1244"></a> if (p.<a href="ntqpicture.html#load">load</a>( "picture.any" )) sx->setPicture( p ); |
