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/buttongroups-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/buttongroups-example.html')
-rw-r--r-- | doc/html/buttongroups-example.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index 2cda99aba..1f3a2a78e 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -114,11 +114,11 @@ protected slots: // Create an exclusive button group <a href="tqbuttongroup.html">TQButtonGroup</a> *bgrp1 = new <a href="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 1 (exclusive)", this); box1-><a href="tqboxlayout.html#addWidget">addWidget</a>( bgrp1 ); -<a name="x549"></a> bgrp1-><a href="tqbuttongroup.html#setExclusive">setExclusive</a>( TRUE ); +<a name="x549"></a> bgrp1-><a href="tqbuttongroup.html#setExclusive">setExclusive</a>( true ); // insert 3 radiobuttons <a href="tqradiobutton.html">TQRadioButton</a> *rb11 = new <a href="tqradiobutton.html">TQRadioButton</a>( "&Radiobutton 1", bgrp1 ); -<a name="x559"></a> rb11-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); +<a name="x559"></a> rb11-><a href="tqradiobutton.html#setChecked">setChecked</a>( true ); (void)new <a href="tqradiobutton.html">TQRadioButton</a>( "R&adiobutton 2", bgrp1 ); (void)new <a href="tqradiobutton.html">TQRadioButton</a>( "Ra&diobutton 3", bgrp1 ); @@ -127,32 +127,32 @@ protected slots: // Create a non-exclusive buttongroup <a href="tqbuttongroup.html">TQButtonGroup</a> *bgrp2 = new <a href="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 2 (non-exclusive)", this ); box1-><a href="tqboxlayout.html#addWidget">addWidget</a>( bgrp2 ); - bgrp2-><a href="tqbuttongroup.html#setExclusive">setExclusive</a>( FALSE ); + bgrp2-><a href="tqbuttongroup.html#setExclusive">setExclusive</a>( false ); // insert 3 checkboxes (void)new <a href="tqcheckbox.html">TQCheckBox</a>( "&Checkbox 1", bgrp2 ); <a href="tqcheckbox.html">TQCheckBox</a> *cb12 = new <a href="tqcheckbox.html">TQCheckBox</a>( "C&heckbox 2", bgrp2 ); -<a name="x552"></a> cb12-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); +<a name="x552"></a> cb12-><a href="tqcheckbox.html#setChecked">setChecked</a>( true ); <a href="tqcheckbox.html">TQCheckBox</a> *cb13 = new <a href="tqcheckbox.html">TQCheckBox</a>( "Triple &State Button", bgrp2 ); -<a name="x553"></a> cb13-><a href="tqcheckbox.html#setTristate">setTristate</a>( TRUE ); - cb13-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); +<a name="x553"></a> cb13-><a href="tqcheckbox.html#setTristate">setTristate</a>( true ); + cb13-><a href="tqcheckbox.html#setChecked">setChecked</a>( true ); // ------------ third group // create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons <a href="tqbuttongroup.html">TQButtonGroup</a> *bgrp3 = new <a href="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 3 (Radiobutton-exclusive)", this ); box2-><a href="tqboxlayout.html#addWidget">addWidget</a>( bgrp3 ); -<a name="x550"></a> bgrp3-><a href="tqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE ); +<a name="x550"></a> bgrp3-><a href="tqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( true ); // insert three radiobuttons rb21 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Rad&iobutton 1", bgrp3 ); rb22 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Radi&obutton 2", bgrp3 ); rb23 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Radio&button 3", bgrp3 ); - rb23-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); + rb23-><a href="tqradiobutton.html#setChecked">setChecked</a>( true ); // insert a checkbox... state = new <a href="tqcheckbox.html">TQCheckBox</a>( "E&nable Radiobuttons", bgrp3 ); - state-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); + state-><a href="tqcheckbox.html#setChecked">setChecked</a>( true ); // ...and connect its TQ_SIGNAL clicked() with the TQ_SLOT slotChangeGrp3State() <a href="tqobject.html#connect">connect</a>( state, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotChangeGrp3State() ) ); @@ -167,12 +167,12 @@ protected slots: // now make the second one a toggle button <a href="tqpushbutton.html">TQPushButton</a> *tb2 = new <a href="tqpushbutton.html">TQPushButton</a>( "&Toggle Button", bgrp4, "toggle" ); -<a name="x558"></a> tb2-><a href="tqpushbutton.html#setToggleButton">setToggleButton</a>( TRUE ); -<a name="x556"></a> tb2-><a href="tqpushbutton.html#setOn">setOn</a>( TRUE ); +<a name="x558"></a> tb2-><a href="tqpushbutton.html#setToggleButton">setToggleButton</a>( true ); +<a name="x556"></a> tb2-><a href="tqpushbutton.html#setOn">setOn</a>( true ); // ... and make the third one a flat button <a href="tqpushbutton.html">TQPushButton</a> *tb3 = new <a href="tqpushbutton.html">TQPushButton</a>( "&Flat Button", bgrp4, "flat" ); -<a name="x555"></a> tb3-><a href="tqpushbutton.html#setFlat">setFlat</a>(TRUE); +<a name="x555"></a> tb3-><a href="tqpushbutton.html#setFlat">setFlat</a>(true); // .. and the fourth a button with a menu <a href="tqpushbutton.html">TQPushButton</a> *tb4 = new <a href="tqpushbutton.html">TQPushButton</a>( "Popup Button", bgrp4, "popup" ); |