diff options
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 cb59c7268..e536b5a6c 100644 --- a/doc/html/checklists-example.html +++ b/doc/html/checklists-example.html @@ -119,7 +119,7 @@ protected slots: lv1 = new <a href="tqlistview.html">TQListView</a>( this ); vbox1-><a href="tqboxlayout.html#addWidget">addWidget</a>( lv1 ); <a name="x427"></a> lv1-><a href="tqlistview.html#addColumn">addColumn</a>( "Items" ); -<a name="x429"></a> lv1-><a href="tqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); +<a name="x429"></a> lv1-><a href="tqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( true ); // create a list with 4 ListViewItems which will be parent items of other ListViewItems <a href="tqvaluelist.html">TQValueList</a><TQListViewItem *> parentList; @@ -133,7 +133,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="tqvaluelist.html#begin">begin</a>(); it != parentList.<a href="tqvaluelist.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++ ) @@ -162,7 +162,7 @@ protected slots: lv2 = new <a href="tqlistview.html">TQListView</a>( this ); vbox2-><a href="tqboxlayout.html#addWidget">addWidget</a>( lv2 ); lv2-><a href="tqlistview.html#addColumn">addColumn</a>( "Items" ); - lv2-><a href="tqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); + lv2-><a href="tqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( true ); // another widget needed for layouting only tmp = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( lay ); @@ -200,7 +200,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="tqchecklistitem.html">TQCheckListItem</a> *item = new <a href="tqchecklistitem.html">TQCheckListItem</a>( lv2, "Controller", TQCheckListItem::Controller ); -<a name="x431"></a> item-><a href="tqlistviewitem.html#setOpen">setOpen</a>( TRUE ); +<a name="x431"></a> item-><a href="tqlistviewitem.html#setOpen">setOpen</a>( true ); // iterate through the first ListView... <a name="x432"></a> for ( ; it.<a href="tqlistviewitemiterator.html#current">current</a>(); ++it ) @@ -212,7 +212,7 @@ void <a name="f249"></a>CheckLists::copy1to2() (void)new <a href="tqchecklistitem.html">TQCheckListItem</a>( item, it.<a href="tqlistviewitemiterator.html#current">current</a>()->text( 0 ), TQCheckListItem::RadioButton ); <a name="x430"></a> if ( item-><a href="tqlistviewitem.html#firstChild">firstChild</a>() ) - ( ( <a href="tqchecklistitem.html">TQCheckListItem</a>* )item-><a href="tqlistviewitem.html#firstChild">firstChild</a>() )->setOn( TRUE ); + ( ( <a href="tqchecklistitem.html">TQCheckListItem</a>* )item-><a href="tqlistviewitem.html#firstChild">firstChild</a>() )->setOn( true ); } /* |