summaryrefslogtreecommitdiffstats
path: root/doc/html/checklists-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
commitb87533f9904c10f24d6b2e8177c00944e3efe15b (patch)
treec1106a381c851b51e86004698457aef1211b77be /doc/html/checklists-example.html
parent894037c3e68e1573a34183d936171f8cda5085f3 (diff)
downloadtqt-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/checklists-example.html')
-rw-r--r--doc/html/checklists-example.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html
index db69b9c30..7659b24d9 100644
--- a/doc/html/checklists-example.html
+++ b/doc/html/checklists-example.html
@@ -120,7 +120,7 @@ protected slots:
lv1 = new <a href="ntqlistview.html">TQListView</a>( this );
vbox1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( lv1 );
<a name="x427"></a> lv1-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Items" );
-<a name="x429"></a> lv1-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
+<a name="x429"></a> lv1-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( true );
// create a list with 4 ListViewItems which will be parent items of other ListViewItems
<a href="ntqvaluelist.html">TQValueList</a>&lt;TQListViewItem *&gt; parentList;
@@ -134,7 +134,7 @@ protected slots:
unsigned int num = 1;
// go through the list of parent items...
<a name="x436"></a><a name="x435"></a> for ( TQValueList&lt;TQListViewItem*&gt;::Iterator it = parentList.<a href="ntqvaluelist.html#begin">begin</a>(); it != parentList.<a href="ntqvaluelist.html#end">end</a>();
- ( *it )-&gt;setOpen( TRUE ), ++it, num++ ) {
+ ( *it )-&gt;setOpen( true ), ++it, num++ ) {
item = *it;
// ...and create 5 checkable child ListViewItems for each parent item
for ( unsigned int i = 1; i &lt;= 5; i++ )
@@ -163,7 +163,7 @@ protected slots:
lv2 = new <a href="ntqlistview.html">TQListView</a>( this );
vbox2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( lv2 );
lv2-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Items" );
- lv2-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
+ lv2-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( true );
// another widget needed for layouting only
tmp = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
@@ -201,7 +201,7 @@ void <a name="f249"></a>CheckLists::copy1to2()
// Insert first a controller Item into the second ListView. Always if Radio-ListViewItems
// are inserted into a Listview, the parent item of these MUST be a controller Item!
<a href="qchecklistitem.html">TQCheckListItem</a> *item = new <a href="qchecklistitem.html">TQCheckListItem</a>( lv2, "Controller", TQCheckListItem::Controller );
-<a name="x431"></a> item-&gt;<a href="qlistviewitem.html#setOpen">setOpen</a>( TRUE );
+<a name="x431"></a> item-&gt;<a href="qlistviewitem.html#setOpen">setOpen</a>( true );
// iterate through the first ListView...
<a name="x432"></a> for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it )
@@ -213,7 +213,7 @@ void <a name="f249"></a>CheckLists::copy1to2()
(void)new <a href="qchecklistitem.html">TQCheckListItem</a>( item, it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ), TQCheckListItem::RadioButton );
<a name="x430"></a> if ( item-&gt;<a href="qlistviewitem.html#firstChild">firstChild</a>() )
- ( ( <a href="qchecklistitem.html">TQCheckListItem</a>* )item-&gt;<a href="qlistviewitem.html#firstChild">firstChild</a>() )-&gt;setOn( TRUE );
+ ( ( <a href="qchecklistitem.html">TQCheckListItem</a>* )item-&gt;<a href="qlistviewitem.html#firstChild">firstChild</a>() )-&gt;setOn( true );
}
/*