summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial2-08.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial2-08.html')
-rw-r--r--doc/html/tutorial2-08.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html
index 4eaad880e..e1001f8e1 100644
--- a/doc/html/tutorial2-08.html
+++ b/doc/html/tutorial2-08.html
@@ -45,7 +45,7 @@ enter label text and choose a label color for each label.
public:
SetDataForm( ElementVector *elements, int decimalPlaces,
<a href="tqwidget.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:
@@ -111,9 +111,9 @@ will be grouped together vertically using the tableButtonBox layout.
<p> <pre> table = new <a href="tqtable.html">TQTable</a>( this, "data table" );
<a name="x2621"></a> table-&gt;<a href="tqtable.html#setNumCols">setNumCols</a>( 5 );
<a name="x2622"></a> table-&gt;<a href="tqtable.html#setNumRows">setNumRows</a>( ChartForm::MAX_ELEMENTS );
- <a name="x2619"></a> table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 1, TRUE );
- table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 2, TRUE );
- table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 4, TRUE );
+ <a name="x2619"></a> table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 1, true );
+ table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 2, true );
+ table-&gt;<a href="tqtable.html#setColumnReadOnly">setColumnReadOnly</a>( 4, true );
<a name="x2620"></a> table-&gt;<a href="tqtable.html#setColumnWidth">setColumnWidth</a>( 0, 80 );
table-&gt;<a href="tqtable.html#setColumnWidth">setColumnWidth</a>( 1, 60 ); // Columns 1 and 4 must be equal
table-&gt;<a href="tqtable.html#setColumnWidth">setColumnWidth</a>( 2, 60 );
@@ -140,7 +140,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="tqpushbutton.html">TQPushButton</a>( this, "color button" );
<a name="x2598"></a> colorPushButton-&gt;<a href="tqbutton.html#setText">setText</a>( "&amp;Color..." );
- colorPushButton-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
+ colorPushButton-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( false );
buttonBox-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( colorPushButton );
</pre>
<p> We create a color button and add it to the buttonBox layout. We
@@ -154,7 +154,7 @@ on a color cell.
buttons we next create a spacer and add that to the buttonBox layout.
<p> <pre> okPushButton = new <a href="tqpushbutton.html">TQPushButton</a>( this, "ok button" );
okPushButton-&gt;<a href="tqbutton.html#setText">setText</a>( "OK" );
- <a name="x2607"></a> okPushButton-&gt;<a href="tqpushbutton.html#setDefault">setDefault</a>( TRUE );
+ <a name="x2607"></a> okPushButton-&gt;<a href="tqpushbutton.html#setDefault">setDefault</a>( true );
buttonBox-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( okPushButton );
cancelPushButton = new <a href="tqpushbutton.html">TQPushButton</a>( this, "cancel button" );