diff options
Diffstat (limited to 'doc/html/tutorial2-08.html')
| -rw-r--r-- | doc/html/tutorial2-08.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index 315b025ca..ef4dca343 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -46,7 +46,7 @@ enter label text and choose a label color for each label. public: SetDataForm( ElementVector *elements, int decimalPlaces, <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = "set data form", - bool modal = TRUE, WFlags f = 0 ); + bool modal = true, WFlags f = 0 ); ~SetDataForm() {} public slots: @@ -112,9 +112,9 @@ will be grouped together vertically using the tableButtonBox layout. <p> <pre> table = new <a href="ntqtable.html">TQTable</a>( this, "data table" ); <a name="x2621"></a> table-><a href="ntqtable.html#setNumCols">setNumCols</a>( 5 ); <a name="x2622"></a> table-><a href="ntqtable.html#setNumRows">setNumRows</a>( ChartForm::MAX_ELEMENTS ); - <a name="x2619"></a> table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 1, TRUE ); - table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 2, TRUE ); - table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 4, TRUE ); + <a name="x2619"></a> table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 1, true ); + table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 2, true ); + table-><a href="ntqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 4, true ); <a name="x2620"></a> table-><a href="ntqtable.html#setColumnWidth">setColumnWidth</a>( 0, 80 ); table-><a href="ntqtable.html#setColumnWidth">setColumnWidth</a>( 1, 60 ); // Columns 1 and 4 must be equal table-><a href="ntqtable.html#setColumnWidth">setColumnWidth</a>( 2, 60 ); @@ -141,7 +141,7 @@ column and finally add the table to the tableButtonBox layout. <p> We create a horizontal box layout to hold the buttons. <p> <pre> colorPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this, "color button" ); <a name="x2598"></a> colorPushButton-><a href="ntqbutton.html#setText">setText</a>( "&Color..." ); - colorPushButton-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); + colorPushButton-><a href="ntqwidget.html#setEnabled">setEnabled</a>( false ); buttonBox-><a href="qboxlayout.html#addWidget">addWidget</a>( colorPushButton ); </pre> <p> We create a color button and add it to the buttonBox layout. We @@ -155,7 +155,7 @@ on a color cell. buttons we next create a spacer and add that to the buttonBox layout. <p> <pre> okPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this, "ok button" ); okPushButton-><a href="ntqbutton.html#setText">setText</a>( "OK" ); - <a name="x2607"></a> okPushButton-><a href="ntqpushbutton.html#setDefault">setDefault</a>( TRUE ); + <a name="x2607"></a> okPushButton-><a href="ntqpushbutton.html#setDefault">setDefault</a>( true ); buttonBox-><a href="qboxlayout.html#addWidget">addWidget</a>( okPushButton ); cancelPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this, "cancel button" ); |
