diff options
Diffstat (limited to 'doc/html/addressbook-example.html')
| -rw-r--r-- | doc/html/addressbook-example.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index 6c878fddb..1f4158f3f 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -446,11 +446,11 @@ void <a name="f277"></a>ABCentralWidget::setupTabWidget() grid2-><a href="qgridlayout.html#addWidget">addWidget</a>( find, 1, 4 ); <a href="ntqobject.html#connect">connect</a>( find, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( findEntries() ) ); -<a name="x574"></a> cFirstName-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); -<a name="x605"></a> sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); - sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); - sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); - sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); +<a name="x574"></a> cFirstName-><a href="ntqcheckbox.html#setChecked">setChecked</a>( true ); +<a name="x605"></a> sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( true ); + sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); + sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); + sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); tabWidget-><a href="ntqtabwidget.html#addTab">addTab</a>( search, "&Search" ); @@ -470,7 +470,7 @@ void <a name="f278"></a>ABCentralWidget::setupListView() <a name="x588"></a> <a href="ntqobject.html#connect">connect</a>( listView, TQ_SIGNAL( <a href="ntqlistview.html#clicked">clicked</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ), this, TQ_SLOT( itemSelected( <a href="qlistviewitem.html">TQListViewItem</a>* ) ) ); mainGrid-><a href="qgridlayout.html#addWidget">addWidget</a>( listView, 1, 0 ); -<a name="x591"></a> listView-><a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE ); +<a name="x591"></a> listView-><a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( true ); } void <a name="f279"></a>ABCentralWidget::addEntry() @@ -516,7 +516,7 @@ void <a name="f282"></a>ABCentralWidget::itemSelected( <a href="qlistviewitem.ht { if ( !item ) return; -<a name="x594"></a> item-><a href="qlistviewitem.html#setSelected">setSelected</a>( TRUE ); +<a name="x594"></a> item-><a href="qlistviewitem.html#setSelected">setSelected</a>( true ); <a name="x593"></a> item-><a href="qlistviewitem.html#repaint">repaint</a>(); <a name="x596"></a> iFirstName-><a href="ntqlineedit.html#setText">setText</a>( item-><a href="qlistviewitem.html#text">text</a>( 0 ) ); @@ -530,11 +530,11 @@ void <a name="f283"></a>ABCentralWidget::toggleFirstName() sFirstName-><a href="ntqlineedit.html#setText">setText</a>( "" ); <a name="x573"></a> if ( cFirstName-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { - sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); + sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( true ); <a name="x606"></a> sFirstName-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else - sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); + sFirstName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); } void <a name="f284"></a>ABCentralWidget::toggleLastName() @@ -542,11 +542,11 @@ void <a name="f284"></a>ABCentralWidget::toggleLastName() sLastName-><a href="ntqlineedit.html#setText">setText</a>( "" ); if ( cLastName-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { - sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); + sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( true ); sLastName-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else - sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); + sLastName-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); } void <a name="f285"></a>ABCentralWidget::toggleAddress() @@ -554,11 +554,11 @@ void <a name="f285"></a>ABCentralWidget::toggleAddress() sAddress-><a href="ntqlineedit.html#setText">setText</a>( "" ); if ( cAddress-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { - sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); + sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( true ); sAddress-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else - sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); + sAddress-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); } void <a name="f286"></a>ABCentralWidget::toggleEMail() @@ -566,11 +566,11 @@ void <a name="f286"></a>ABCentralWidget::toggleEMail() sEMail-><a href="ntqlineedit.html#setText">setText</a>( "" ); if ( cEMail-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { - sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); + sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( true ); sEMail-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else - sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); + sEMail-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); } void <a name="f287"></a>ABCentralWidget::findEntries() @@ -586,37 +586,37 @@ void <a name="f287"></a>ABCentralWidget::findEntries() <a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( listView ); for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it ) { - bool select = TRUE; + bool select = true; if ( cFirstName-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { if ( select && it.<a href="qlistviewitemiterator.html#current">current</a>()->text( 0 ).contains( sFirstName-><a href="ntqlineedit.html#text">text</a>() ) ) - select = TRUE; + select = true; else - select = FALSE; + select = false; } if ( cLastName-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { if ( select && it.<a href="qlistviewitemiterator.html#current">current</a>()->text( 1 ).contains( sLastName-><a href="ntqlineedit.html#text">text</a>() ) ) - select = TRUE; + select = true; else - select = FALSE; + select = false; } if ( cAddress-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { if ( select && it.<a href="qlistviewitemiterator.html#current">current</a>()->text( 2 ).contains( sAddress-><a href="ntqlineedit.html#text">text</a>() ) ) - select = TRUE; + select = true; else - select = FALSE; + select = false; } if ( cEMail-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { if ( select && it.<a href="qlistviewitemiterator.html#current">current</a>()->text( 3 ).contains( sEMail-><a href="ntqlineedit.html#text">text</a>() ) ) - select = TRUE; + select = true; else - select = FALSE; + select = false; } if ( select ) - it.<a href="qlistviewitemiterator.html#current">current</a>()->setSelected( TRUE ); + it.<a href="qlistviewitemiterator.html#current">current</a>()->setSelected( true ); else - it.<a href="qlistviewitemiterator.html#current">current</a>()->setSelected( FALSE ); + it.<a href="qlistviewitemiterator.html#current">current</a>()->setSelected( false ); it.<a href="qlistviewitemiterator.html#current">current</a>()->repaint(); } } |
