summaryrefslogtreecommitdiffstats
path: root/doc/html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html')
-rw-r--r--doc/html/designer-manual-8.html2
-rw-r--r--doc/html/tutorial1-10.html4
-rw-r--r--doc/html/tutorial1-12.html6
-rw-r--r--doc/html/tutorial1-13.html20
-rw-r--r--doc/html/tutorial1-14.html16
-rw-r--r--doc/html/tutorial2-05.html16
-rw-r--r--doc/html/tutorial2-06.html2
-rw-r--r--doc/html/tutorial2-07.html4
-rw-r--r--doc/html/tutorial2-08.html12
-rw-r--r--doc/html/tutorial2-09.html6
10 files changed, 44 insertions, 44 deletions
diff --git a/doc/html/designer-manual-8.html b/doc/html/designer-manual-8.html
index f22a272e6..010d85daa 100644
--- a/doc/html/designer-manual-8.html
+++ b/doc/html/designer-manual-8.html
@@ -93,7 +93,7 @@ bool createConnections()
return TRUE;
}
</pre>
-<!-- index addDatabase() --><p>We call <tt>addDatabase()</tt> passing it the name of the driver we wish to use. We then set the connection information by calling the <tt>set</tt>... functions. Finally we attempt to open the connection. If we succeed we return TRUE, otherwise we output some error information and return FALSE. From <tt>qt/tools/designer/examples/book/book1/main.cpp</tt></p>
+<!-- index addDatabase() --><p>We call <tt>addDatabase()</tt> passing it the name of the driver we wish to use. We then set the connection information by calling the <tt>set</tt>... functions. Finally we attempt to open the connection. If we succeed we return true, otherwise we output some error information and return false. From <tt>qt/tools/designer/examples/book/book1/main.cpp</tt></p>
<pre> int main( int argc, char *argv[] )
{
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
diff --git a/doc/html/tutorial1-10.html b/doc/html/tutorial1-10.html
index 6296e4617..2e02d9658 100644
--- a/doc/html/tutorial1-10.html
+++ b/doc/html/tutorial1-10.html
@@ -99,12 +99,12 @@ separate function.
if ( ang == degrees )
return;
ang = degrees;
- <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), FALSE );
+ <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), false );
emit angleChanged( ang );
}
</pre>
<p> We have made a slight change in the setAngle() function. It repaints
-only the portion of the widget that contains the cannon. The FALSE
+only the portion of the widget that contains the cannon. The false
argument indicates that the specified rectangle should not be erased
before a paint event is sent to the widget. This speeds up and smooths
the drawing a little bit.
diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html
index 06dc2625f..886ccde8c 100644
--- a/doc/html/tutorial1-12.html
+++ b/doc/html/tutorial1-12.html
@@ -185,9 +185,9 @@ widget is invisible. TQt guarantees that no harm is done when calling
repaint() on a hidden widget.
<p> <pre> void CannonField::newTarget()
{
- static bool first_time = TRUE;
+ static bool first_time = true;
if ( first_time ) {
- first_time = FALSE;
+ first_time = false;
<a href="tqtime.html">TQTime</a> midnight( 0, 0, 0 );
<a name="x2399"></a><a name="x2398"></a> srand( midnight.<a href="tqtime.html#secsTo">secsTo</a>(TQTime::<a href="tqtime.html#currentTime">currentTime</a>()) );
}
@@ -209,7 +209,7 @@ passed since midnight as a pseudo-random value.
<p> First we create a static bool local variable. A static variable like
this one is guaranteed to keep its value between calls to the function.
<p> The <tt>if</tt> test will succeed only the first time this function is called
-because we set <tt>first_time</tt> to FALSE inside the <tt>if</tt> block.
+because we set <tt>first_time</tt> to false inside the <tt>if</tt> block.
<p> Then we create the <a href="tqtime.html">TQTime</a> object <tt>midnight</tt>, which represents the time
00:00:00. Next we fetch the number of seconds from midnight until
now and use it as a random seed. See the documentation for <a href="tqdate.html">TQDate</a>,
diff --git a/doc/html/tutorial1-13.html b/doc/html/tutorial1-13.html
index 13e01c660..ea643917f 100644
--- a/doc/html/tutorial1-13.html
+++ b/doc/html/tutorial1-13.html
@@ -105,7 +105,7 @@ not.
<p> <pre> bool gameOver() const { return gameEnded; }
</pre>
-<p> This function returns TRUE if the game is over or FALSE if a game
+<p> This function returns true if the game is over or false if a game
is going on.
<p> <pre> void setGameOver();
void restartGame();
@@ -118,13 +118,13 @@ shoot() slot makes sense. We'll use it below to enable/disable the
Shoot button.
<p> <pre> bool gameEnded;
</pre>
-<p> This private variable contains the game state. TRUE means that the
-game is over, and FALSE means that a game is going on.
+<p> This private variable contains the game state. true means that the
+game is over, and false means that a game is going on.
<p> <h3> <a href="t13-cannon-cpp.html">t13/cannon.cpp</a>
</h3>
<a name="1-4"></a><p>
-<p> <pre> gameEnded = FALSE;
+<p> <pre> gameEnded = false;
</pre>
<p> This line has been added to the constructor. Initially, the game is not
over (luckily for the player :-).
@@ -136,7 +136,7 @@ over (luckily for the player :-).
shoot_ang = ang;
shoot_f = f;
<a name="x2407"></a> autoShootTimer-&gt;<a href="tqtimer.html#start">start</a>( 50 );
- emit canShoot( FALSE );
+ emit canShoot( false );
}
</pre>
<p> We added a new isShooting() function, so shoot() uses it instead of
@@ -148,7 +148,7 @@ cannot shoot now.
return;
if ( isShooting() )
autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
- gameEnded = TRUE;
+ gameEnded = true;
<a href="tqwidget.html#repaint">repaint</a>();
}
</pre>
@@ -165,14 +165,14 @@ widget.
{
if ( isShooting() )
<a name="x2408"></a> autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
- gameEnded = FALSE;
+ gameEnded = false;
<a href="tqwidget.html#repaint">repaint</a>();
- emit canShoot( TRUE );
+ emit canShoot( true );
}
</pre>
<p> This slot starts a new game. If a shot is in the air, we stop shooting.
We then reset the <tt>gameEnded</tt> variable and repaint the widget.
-<p> moveShot() too emits the new canShoot(TRUE) signal at the same time as
+<p> moveShot() too emits the new canShoot(true) signal at the same time as
either hit() or miss().
<p> Modifications in CannonField::paintEvent():
<p> <pre> void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e )
@@ -187,7 +187,7 @@ either hit() or miss().
}
</pre>
<p> The paint event has been enhanced to display the text "Game Over" if
-the game is over, i.e., <tt>gameEnded</tt> is TRUE. We don't bother to
+the game is over, i.e., <tt>gameEnded</tt> is true. We don't bother to
check the update rectangle here because speed is not critical when
the game is over.
<p> To draw the text we first set a black pen; the pen color is used
diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html
index fdf985631..87623cd6a 100644
--- a/doc/html/tutorial1-14.html
+++ b/doc/html/tutorial1-14.html
@@ -79,13 +79,13 @@ three mouse event handlers. The names say it all.
<p> This private function checks if a point is inside the barrel of the cannon.
<p> <pre> bool barrelPressed;
</pre>
-<p> This private variable is TRUE if the user has pressed the mouse on the
+<p> This private variable is true if the user has pressed the mouse on the
barrel and not released it.
<p> <h3> <a href="t14-cannon-cpp.html">t14/cannon.cpp</a>
</h3>
<a name="1-2"></a><p>
-<p> <pre> barrelPressed = FALSE;
+<p> <pre> barrelPressed = false;
</pre>
<p> This line has been added to the constructor. Initially, the mouse is
not pressed on the barrel.
@@ -99,7 +99,7 @@ the third, too.
if ( e-&gt;<a href="tqmouseevent.html#button">button</a>() != LeftButton )
return;
<a name="x2418"></a> if ( barrelHit( e-&gt;<a href="tqmouseevent.html#pos">pos</a>() ) )
- barrelPressed = TRUE;
+ barrelPressed = true;
}
</pre>
<p> This is a TQt event handler. It is called when the user presses a
@@ -107,7 +107,7 @@ mouse button when the mouse cursor is over the widget.
<p> If the event was not generated by the left mouse button, we return
immediately. Otherwise, we check if the position of the mouse cursor
is within the cannon's barrel. If it is, we set <tt>barrelPressed</tt> to
-TRUE.
+true.
<p> Notice that the pos() function returns a point in the widget's
coordinate system.
<p> <pre> void CannonField::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )
@@ -140,7 +140,7 @@ value converted to degrees.
<p> <pre> <a name="x2432"></a>void CannonField::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e )
{
<a name="x2417"></a> if ( e-&gt;<a href="tqmouseevent.html#button">button</a>() == LeftButton )
- barrelPressed = FALSE;
+ barrelPressed = false;
}
</pre>
<p> This TQt event handler is called whenever the user releases a mouse
@@ -178,8 +178,8 @@ the bottom edge of the barrier to the bottom edge of the widget.
<a name="x2434"></a><a name="x2426"></a> return barrelRect.<a href="tqrect.html#contains">contains</a>( mtx.<a href="tqwmatrix.html#map">map</a>(p) );
}
</pre>
-<p> This function returns TRUE if the point is in the barrel; otherwise it returns
-FALSE.
+<p> This function returns true if the point is in the barrel; otherwise it returns
+false.
<p> Here we use the class <a href="tqwmatrix.html">TQWMatrix</a>. It is defined in the header file
tqwmatrix.h, which is included by tqpainter.h.
<p> <a href="tqwmatrix.html">TQWMatrix</a> defines a coordinate system mapping. It can perform the same
@@ -191,7 +191,7 @@ coordinate system and then we rotate it.
inside the barrel. To do this, we invert the <a href="tqwmatrix.html#TransformationMode">transformation matrix</a>.
The inverted matrix performs the inverse transformation that we used
when drawing the barrel. We map the point <tt>p</tt> using the inverted
-matrix and return TRUE if it is inside the original barrel rectangle.
+matrix and return true if it is inside the original barrel rectangle.
<p> <h3> <a href="t14-gamebrd-cpp.html">t14/gamebrd.cpp</a>
</h3>
<a name="1-3"></a><p>
diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html
index ac2f6ec51..bb3869391 100644
--- a/doc/html/tutorial2-05.html
+++ b/doc/html/tutorial2-05.html
@@ -52,7 +52,7 @@ conventional document-centric style.
~ChartForm();
int chartType() { return m_chartType; }
- void setChanged( bool changed = TRUE ) { m_changed = changed; }
+ void setChanged( bool changed = true ) { m_changed = changed; }
void drawElements();
<a href="tqpopupmenu.html">TQPopupMenu</a> *optionsMenu; // Why public? See canvasview.cpp
@@ -177,19 +177,19 @@ menu options and toolbar buttons must be automatically unselected.
This behaviour is achieved by creating a <a href="tqactiongroup.html">TQActionGroup</a> and placing the
chart type actions in the group.
<p> <pre> <a href="tqactiongroup.html">TQActionGroup</a> *chartGroup = new <a href="tqactiongroup.html">TQActionGroup</a>( this ); // Connected later
- chartGroup-&gt;<a href="tqactiongroup.html#setExclusive">setExclusive</a>( TRUE );
+ chartGroup-&gt;<a href="tqactiongroup.html#setExclusive">setExclusive</a>( true );
</pre>
<p> The action group becomes a child of the form (<tt>this</tt>) and the
exlusive behaviour is achieved by the setExclusive() call.
<p> <pre> optionsPieChartAction = new <a href="tqaction.html">TQAction</a>(
"Pie Chart", TQPixmap( options_piechart ),
"&amp;Pie Chart", CTRL+Key_I, chartGroup, "pie chart" );
- optionsPieChartAction-&gt;<a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE );
+ optionsPieChartAction-&gt;<a href="tqaction.html#setToggleAction">setToggleAction</a>( true );
</pre>
<p> Each action in the group is created in the same way as other actions,
except that the action's parent is the group rather than the form.
Because our chart type actions have an on/off state we call
-setToggleAction(TRUE) for each of them. Note that we do not connect
+setToggleAction(true) for each of them. Note that we do not connect
the actions; instead, later on, we will connect the group to a slot
that will cause the canvas to redraw.
<p> <center><table cellpadding="4" cellspacing="2" border="0">
@@ -302,7 +302,7 @@ call ensures that a status bar is created for this main window.
{
<a href="tqwidget.html#setCaption">setCaption</a>( "Chart" );
m_filename = <a href="tqstring.html#TQString-null">TQString::null</a>;
- m_changed = FALSE;
+ m_changed = false;
m_elements[0] = Element( Element::INVALID, red );
m_elements[1] = Element( Element::INVALID, cyan );
@@ -340,13 +340,13 @@ already have a unique color (which they can change of course).
break;
case 1: // Cancel
default:
- return FALSE;
+ return false;
case 2: // Abandon
break;
}
}
- return TRUE;
+ return true;
}
</pre>
<p> The okToClear() function is used to prompt the user to save their
@@ -555,7 +555,7 @@ elements.
{
SetDataForm *setDataForm = new SetDataForm( &amp;m_elements, m_decimalPlaces, this );
if ( setDataForm-&gt;<a href="tqdialog.html#exec">exec</a>() ) {
- m_changed = TRUE;
+ m_changed = true;
drawElements();
}
delete setDataForm;
diff --git a/doc/html/tutorial2-06.html b/doc/html/tutorial2-06.html
index de6ec28db..3e25f5a4c 100644
--- a/doc/html/tutorial2-06.html
+++ b/doc/html/tutorial2-06.html
@@ -319,7 +319,7 @@ and record its position. Otherwise we set there to be no moving item.
<a name="x2582"></a><a name="x2581"></a> m_movingItem-&gt;moveBy( offset.<a href="tqpoint.html#x">x</a>(), offset.<a href="tqpoint.html#y">y</a>() );
m_pos = e-&gt;<a href="tqmouseevent.html#pos">pos</a>();
ChartForm *form = (ChartForm*)<a href="tqobject.html#parent">parent</a>();
- form-&gt;setChanged( TRUE );
+ form-&gt;setChanged( true );
int chartType = form-&gt;chartType();
CanvasText *item = (CanvasText*)m_movingItem;
int i = item-&gt;index();
diff --git a/doc/html/tutorial2-07.html b/doc/html/tutorial2-07.html
index 154d8d96f..ac12ccc97 100644
--- a/doc/html/tutorial2-07.html
+++ b/doc/html/tutorial2-07.html
@@ -62,7 +62,7 @@ body { background: #ffffff; color: black; }
updateRecentFiles( filename );
drawElements();
- m_changed = FALSE;
+ m_changed = false;
}
</pre>
<p> Loading a data set is very easy. We open the file and create a text
@@ -89,7 +89,7 @@ draw the chart and mark it as unchanged.
<a href="tqwidget.html#setCaption">setCaption</a>( TQString( "Chart -- %1" ).arg( m_filename ) );
<a href="tqmainwindow.html#statusBar">statusBar</a>()-&gt;message( TQString( "Saved \'%1\'" ).arg( m_filename ), 2000 );
- m_changed = FALSE;
+ m_changed = false;
}
</pre>
<p> Saving data is equally easy. We open the file and create a text
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" );
diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html
index 4bae78521..89de9fad3 100644
--- a/doc/html/tutorial2-09.html
+++ b/doc/html/tutorial2-09.html
@@ -43,7 +43,7 @@ apply to all data sets in one place.
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
OptionsForm( <a href="tqwidget.html">TQWidget</a>* parent = 0, const char* name = "options form",
- bool modal = FALSE, WFlags f = 0 );
+ bool modal = false, WFlags f = 0 );
~OptionsForm() {}
<a href="tqfont.html">TQFont</a> font() const { return m_font; }
@@ -119,7 +119,7 @@ vertical box layout.
<p> <pre> chartTypeTextLabel = new <a href="tqlabel.html">TQLabel</a>( "&amp;Chart Type", this );
<a name="x2631"></a> chartTypeLayout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( chartTypeTextLabel );
- chartTypeComboBox = new <a href="tqcombobox.html">TQComboBox</a>( FALSE, this );
+ chartTypeComboBox = new <a href="tqcombobox.html">TQComboBox</a>( false, this );
<a name="x2633"></a> chartTypeComboBox-&gt;<a href="tqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_piechart ), "Pie Chart" );
chartTypeComboBox-&gt;<a href="tqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_verticalbarchart ),
"Vertical Bar Chart" );
@@ -164,7 +164,7 @@ know what font the user is using).
<a name="x2644"></a> addValuesButtonGroupLayout-&gt;<a href="tqlayoutitem.html#setAlignment">setAlignment</a>( TQt::AlignTop );
noRadioButton = new <a href="tqradiobutton.html">TQRadioButton</a>( "&amp;No", addValuesButtonGroup );
- <a name="x2645"></a> noRadioButton-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE );
+ <a name="x2645"></a> noRadioButton-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>( true );
addValuesButtonGroupLayout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( noRadioButton );
yesRadioButton = new <a href="tqradiobutton.html">TQRadioButton</a>( "&amp;Yes", addValuesButtonGroup );