diff options
Diffstat (limited to 'doc/tutorial.doc')
-rw-r--r-- | doc/tutorial.doc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/tutorial.doc b/doc/tutorial.doc index 43a2068f3..6528e00e8 100644 --- a/doc/tutorial.doc +++ b/doc/tutorial.doc @@ -1741,10 +1741,10 @@ The LCDRange now has a text label. \quotefile t12/lcdrange.h -\skipto QLabel -\printline QLabel +\skipto TQLabel +\printline TQLabel -We name declare QLabel because we want to use a pointer to it in the class +We name declare TQLabel because we want to use a pointer to it in the class definition. \skipto class @@ -1771,10 +1771,10 @@ This slot sets the label text. Because we now have two constructors, we have chosen to put the common initialization in the private init() function. -\skipto QLabel +\skipto TQLabel \printline label -We also have a new private variable: a QLabel. QLabel is one of Qt's +We also have a new private variable: a TQLabel. TQLabel is one of Qt's standard widgets and can show a text or a pixmap with or without a frame. @@ -1783,10 +1783,10 @@ frame. \quotefile t12/lcdrange.cpp -\skipto qlabel +\skipto tqlabel \printline include -Here we include the QLabel class definition. +Here we include the TQLabel class definition. \skipto ::LCDRange \printuntil } @@ -1803,7 +1803,7 @@ This constructor first calls init() and then sets the label text. \printuntil } The setup of \c lcd and \c slider is the same as in the previous -chapter. Next we create a QLabel and tell it to align the contents +chapter. Next we create a TQLabel and tell it to align the contents centered (both vertically and horizontally). The connect() statements have also been taken from the previous chapter. @@ -2281,10 +2281,10 @@ with the other buttons. Clicking this button will activate the newGame() slot in this widget. \printuntil shotsLeftL -\printline QLabel +\printline TQLabel We create four new widgets. Note that we don't bother to keep the -pointers to the QLabel widgets in the GameBoard class because there's +pointers to the TQLabel widgets in the GameBoard class because there's 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. |