summaryrefslogtreecommitdiffstats
path: root/doc/tutorial.doc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-08-16 19:11:00 +0900
committerMichele Calgaro <[email protected]>2024-08-16 19:11:00 +0900
commit82ecd83484c9fa1ede059986ab771e74e33e68ef (patch)
treed0e76f19632bb02fc55028625bdb903902e1bac1 /doc/tutorial.doc
parentc55ef27a2c511c29a8a82d00bd2ede1fb02cfa41 (diff)
downloadtqt3-82ecd83484c9fa1ede059986ab771e74e33e68ef.tar.gz
tqt3-82ecd83484c9fa1ede059986ab771e74e33e68ef.zip
Rename layout nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/tutorial.doc')
-rw-r--r--doc/tutorial.doc62
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/tutorial.doc b/doc/tutorial.doc
index de31609ca..c1a6fe49b 100644
--- a/doc/tutorial.doc
+++ b/doc/tutorial.doc
@@ -318,15 +318,15 @@ We'll keep it simple and use just a single parent and a lone child.
\section1 Line-by-line Walkthrough
-\skipto ntqvbox.h
-\printline ntqvbox.h
+\skipto tqvbox.h
+\printline tqvbox.h
-We add an include of ntqvbox.h to get the layout class we'll use.
+We add an include of tqvbox.h to get the layout class we'll use.
-\skipto QVBox
-\printline QVBox
+\skipto TQVBox
+\printline TQVBox
-Here we simply create a vertical box container. The QVBox arranges
+Here we simply create a vertical box container. The TQVBox arranges
its child widgets in a vertical row, one above the other, handing out
space according to each child's \l TQWidget::sizePolicy().
@@ -342,7 +342,7 @@ This TQPushButton is created with both a text ("Quit") and a parent
(box). A child widget is always on top of its parent. When
displayed, it is clipped by its parent's bounds.
-The parent widget, the QVBox, automatically adds the child centered in
+The parent widget, the TQVBox, automatically adds the child centered in
its box. Because nothing else is added, the button gets all the space
the parent has.
@@ -502,10 +502,10 @@ by using signals and slots, and how to handle resize events.
\section1 Line-by-line Walkthrough
\skipto qapp
-\printuntil qvbox
+\printuntil tqvbox
Three new include files are shown here. tqslider.h and tqlcdnumber.h are there
-because we use two new widgets, TQSlider and TQLCDNumber. ntqvbox.h is
+because we use two new widgets, TQSlider and TQLCDNumber. tqvbox.h is
here because we use Qt's automatic layout support.
\skipto MyWidget
@@ -514,9 +514,9 @@ here because we use Qt's automatic layout support.
\target constructor
\printuntil {
-MyWidget is now derived from QVBox instead of TQWidget. That way we use
-the layout of the QVBox (which places all of its children vertically
-inside itself). Resizes are now handled automatically by the QVBox and
+MyWidget is now derived from TQVBox instead of TQWidget. That way we use
+the layout of the TQVBox (which places all of its children vertically
+inside itself). Resizes are now handled automatically by the TQVBox and
therefore by MyWidget, too.
\skipto lcd
@@ -706,7 +706,7 @@ header file.
\printline include
-\c ntqvbox.h is included. LCDRange inherits QVBox, and the header file
+\c tqvbox.h is included. LCDRange inherits TQVBox, and the header file
of a parent class must always be included. We cheated a bit in the
previous chapters, and we let \c tqwidget.h be included indirectly via
other header files such as \c tqpushbutton.h.
@@ -1050,7 +1050,7 @@ loop upon the first change of one of the values.
\printline TQGridLayout
\printline 2x2
-So far we have used the no-assembly-required QVBox and TQGrid widgets
+So far we have used the no-assembly-required TQVBox 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 TQGridLayout
class. TQGridLayout isn't a widget; it is a different class that can
@@ -1456,8 +1456,8 @@ We add a second LCDRange, which will be used to set the force.
We connect the \c force widget and the \c cannonField widget, just like
we did for the \c angle widget.
-\skipto QVBoxLayout
-\printline QVBoxLayout
+\skipto TQVBoxLayout
+\printline TQVBoxLayout
\printline addLayout
\printline addWidget
\printline addWidget
@@ -1991,7 +1991,7 @@ We set the force text label to "FORCE".
\section1 Behavior
The LCDRange widgets look a bit strange - the built-in layout
-management in QVBox gives the labels too much space and the rest not
+management in TQVBox gives the labels too much space and the rest not
enough. We'll fix that in the next chapter.
(See \link tutorial1-07.html#compiling Compiling\endlink for how to create a
@@ -2073,9 +2073,9 @@ implementation.
\skipto include
\printuntil TQWidget
-We inherit TQWidget rather than QVBox. QVBox is very easy to use, but
+We inherit TQWidget rather than TQVBox. TQVBox is very easy to use, but
again it showed its limitations so we switch to the more powerful and
-slightly harder to use QVBoxLayout. (As you remember, QVBoxLayout is
+slightly harder to use TQVBoxLayout. (As you remember, TQVBoxLayout is
not a widget, it manages one.)
\section2 \l t13/lcdrange.cpp
@@ -2085,7 +2085,7 @@ not a widget, it manages one.)
\skipto layout
\printline layout
-We need to include ntqlayout.h now to get the other layout management
+We need to include tqlayout.h now to get the other layout management
API.
\printline LCDRange
@@ -2096,10 +2096,10 @@ We inherit TQWidget in the usual way.
The other constructor has the same change. init() is unchanged,
except that we've added some lines at the end:
-\skipto QVBoxLayout
-\printline QVBoxLayout
+\skipto TQVBoxLayout
+\printline TQVBoxLayout
-We create a QVBoxLayout with all the default values, managing this
+We create a TQVBoxLayout with all the default values, managing this
widget's children.
\printline addWidget
@@ -2111,8 +2111,8 @@ 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
-TQGridLayout) offers but classes like QVBox do not. In this case
+This stretch control is something TQVBoxLayout (and TQHBoxLayout, and
+TQGridLayout) offers but classes like TQVBox do not. In this case
we're saying that the TQLCDNumber should stretch and the others should
not.
@@ -2289,7 +2289,7 @@ nothing much we want to do with them. TQt will delete them when the
GameBoard widget is destroyed, and the layout classes will resize them
appropriately.
-\skipto QHBoxLayout
+\skipto TQHBoxLayout
\printuntil addStretch
\printline addWidget
@@ -2567,14 +2567,14 @@ matrix and return TRUE if it is inside the original barrel rectangle.
We include the class definition of \l QAccel.
\skipto ::GameBoard
-\skipto QVBox
-\printline QVBox
+\skipto TQVBox
+\printline TQVBox
\printline setFrameStyle
\printline cannonField
-We create and set up a \l QVBox, set its frame style, and then create
+We create and set up a \l TQVBox, set its frame style, and then create
\c CannonField as a child of that box. Because nothing else is in the
-box, the effect is that the QVBox will put a frame around the
+box, the effect is that the TQVBox will put a frame around the
CannonField.
\skipto QAccel
@@ -2612,7 +2612,7 @@ inherit the \l TQt namespace class.
\printline addWidget
\printline setColStretch
-We put \c box (the QVBox), not the CannonField, in the lower-right
+We put \c box (the TQVBox), not the CannonField, in the lower-right
cell.
\section1 Behavior