summaryrefslogtreecommitdiffstats
path: root/doc/tutorial.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial.doc')
-rw-r--r--doc/tutorial.doc34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/tutorial.doc b/doc/tutorial.doc
index 80b0138e..de31609c 100644
--- a/doc/tutorial.doc
+++ b/doc/tutorial.doc
@@ -293,7 +293,7 @@ Try to resize the window. Press the button. Oops! That connect()
would seem to make some difference.
Are there any other signals in TQPushButton you can connect to quit?
-Hint: The TQPushButton inherits most of its behavior from QButton.
+Hint: The TQPushButton inherits most of its behavior from TQButton.
You're now ready for \link tutorial1-03.html Chapter 3.\endlink
@@ -623,9 +623,9 @@ objects.
\printline grid
-We create a QGrid object with four columns. The QGRid widget
+We create a TQGrid object with four columns. The TQGrid widget
automatically arranges its children in rows and columns; you can
-specify the number of rows or of columns, and QGrid will discover its
+specify the number of rows or of columns, and TQGrid will discover its
new children and fit them into the grid.
\printline for
@@ -635,7 +635,7 @@ new children and fit them into the grid.
Four columns, four rows.
We create 4*4 LCDRanges, all of which are children of the grid object.
-The QGrid widget will arrange them.
+The TQGrid widget will arrange them.
\printline }
@@ -655,7 +655,7 @@ makefile and build the application.)
Initialize each slider with a different/random value on startup.
The source contains three occurrences of "4". What happens if you
-change the one in the \l QGrid constructor call? What about the other
+change the one in the \l TQGrid constructor call? What about the other
two? Why is this?
You're now ready for \link tutorial1-07.html Chapter 7.\endlink
@@ -1047,17 +1047,17 @@ the angle actually changes. If both the LCDRange and the CannonField
had omitted this check, the program would have entered an infinite
loop upon the first change of one of the values.
-\printline QGridLayout
+\printline TQGridLayout
\printline 2x2
-So far we have used the no-assembly-required QVBox and QGrid widgets
+So far we have used the no-assembly-required QVBox and TQGrid widgets
for geometry management. Now, however, we want to have a little more
-control over the layout, and we switch to the more powerful QGridLayout
-class. QGridLayout isn't a widget; it is a different class that can
+control over the layout, and we switch to the more powerful TQGridLayout
+class. TQGridLayout isn't a widget; it is a different class that can
manage the children of \e any widget.
As the comment indicates, we create a two-by-two array with ten pixel
-borders. (The constructor for \l QGridLayout can be a little cryptic,
+borders. (The constructor for \l TQGridLayout can be a little cryptic,
so it's good to put in such comments.)
\printline addWidget
@@ -1067,8 +1067,8 @@ We add the Quit button in the top-left cell of the grid: 0, 0.
\printline addWidget
We put the angle LCDRange in the bottom-left cell, aligned to the top
-of its cell. (This alignment is one of the things QGridLayout allows
-but QGrid does not allow.)
+of its cell. (This alignment is one of the things TQGridLayout allows
+but TQGrid does not allow.)
\printline addWidget
@@ -1077,9 +1077,9 @@ right cell is empty.)
\printline setColStretch
-We tell QGridLayout that the right column (column 1) is stretchable.
+We tell TQGridLayout that the right column (column 1) is stretchable.
Because the left column isn't (it has stretch factor 0, the default
-value), QGridLayout will try to let the left-hand widgets' sizes be
+value), TQGridLayout will try to let the left-hand widgets' sizes be
unchanged and will resize just the CannonField when the MyWidget is
resized.
@@ -1133,7 +1133,7 @@ happens when you resize the window?
Leave out the setFocus() call. Which behavior do you prefer?
-Try to change "Quit" to "&Quit" in the QButton::setText() call. How
+Try to change "Quit" to "&Quit" in the TQButton::setText() call. How
does the button's look change? What happens if you press Alt+Q while
the program's running? (It is Meta+Q on a few keyboards.)
@@ -2112,7 +2112,7 @@ At the top we add the TQLCDNumber with a non-zero stretch.
Then we add the other two, both with the default zero stretch.
This stretch control is something QVBoxLayout (and QHBoxLayout, and
-QGridLayout) offers but classes like QVBox do not. In this case
+TQGridLayout) offers but classes like QVBox do not. In this case
we're saying that the TQLCDNumber should stretch and the others should
not.
@@ -2607,7 +2607,7 @@ CTRL, Key_Enter, Key_Return and Key_Q are all constants provided by
TQt. They're actually TQt::Key_Enter, etc., but practically all classes
inherit the \l TQt namespace class.
-\printline QGridLayout
+\printline TQGridLayout
\printline addWidget
\printline addWidget
\printline setColStretch