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/checklists-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/checklists-example.html')
| -rw-r--r-- | doc/html/checklists-example.html | 10 |
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-><a href="qboxlayout.html#addWidget">addWidget</a>( lv1 ); <a name="x427"></a> lv1-><a href="ntqlistview.html#addColumn">addColumn</a>( "Items" ); -<a name="x429"></a> lv1-><a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); +<a name="x429"></a> lv1-><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><TQListViewItem *> 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<TQListViewItem*>::Iterator it = parentList.<a href="ntqvaluelist.html#begin">begin</a>(); it != parentList.<a href="ntqvaluelist.html#end">end</a>(); - ( *it )->setOpen( TRUE ), ++it, num++ ) { + ( *it )->setOpen( true ), ++it, num++ ) { item = *it; // ...and create 5 checkable child ListViewItems for each parent item for ( unsigned int i = 1; i <= 5; i++ ) @@ -163,7 +163,7 @@ protected slots: lv2 = new <a href="ntqlistview.html">TQListView</a>( this ); vbox2-><a href="qboxlayout.html#addWidget">addWidget</a>( lv2 ); lv2-><a href="ntqlistview.html#addColumn">addColumn</a>( "Items" ); - lv2-><a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); + lv2-><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-><a href="qlistviewitem.html#setOpen">setOpen</a>( TRUE ); +<a name="x431"></a> item-><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>()->text( 0 ), TQCheckListItem::RadioButton ); <a name="x430"></a> if ( item-><a href="qlistviewitem.html#firstChild">firstChild</a>() ) - ( ( <a href="qchecklistitem.html">TQCheckListItem</a>* )item-><a href="qlistviewitem.html#firstChild">firstChild</a>() )->setOn( TRUE ); + ( ( <a href="qchecklistitem.html">TQCheckListItem</a>* )item-><a href="qlistviewitem.html#firstChild">firstChild</a>() )->setOn( true ); } /* |
