diff options
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 ); |