summaryrefslogtreecommitdiffstats
path: root/doc/tutorial2.doc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-07-29 12:43:23 +0900
committerMichele Calgaro <[email protected]>2024-07-29 12:43:23 +0900
commitfef846914f8db6dc117e206ef913d519bf6bb33e (patch)
treed6567b31f7f22d0c8c66eec947dff1960efa25ac /doc/tutorial2.doc
parent8ef4ea451dd81dd66b34ed31aaa631f6df24a192 (diff)
downloadtqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.tar.gz
tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.zip
Rename basic widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/tutorial2.doc')
-rw-r--r--doc/tutorial2.doc26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc
index be63894aa..c9d8bfa56 100644
--- a/doc/tutorial2.doc
+++ b/doc/tutorial2.doc
@@ -1029,7 +1029,7 @@ enter label text and choose a label color for each label.
(Extracts from \c setdataform.h.)
\quotefile chart/setdataform.h
-\skipto public QDialog
+\skipto public TQDialog
\printuntil };
The header file is simple. The constructor takes a pointer to the
@@ -1051,7 +1051,7 @@ Qt supports. We'll use these in the pattern combobox.
\skipto SetDataForm::SetDataForm
\printuntil m_decimalPlaces
-We pass most of the arguments to the QDialog superclass. We assign the
+We pass most of the arguments to the TQDialog superclass. We assign the
elements vector pointer and the number of decimal places to display to
member variables so that they are accessible by all SetDataForm's
member functions.
@@ -1085,7 +1085,7 @@ column and finally add the table to the tableButtonBox layout.
We create a horizontal box layout to hold the buttons.
-\skipto QPushButton
+\skipto TQPushButton
\printuntil addWidget
We create a color button and add it to the buttonBox layout. We
@@ -1099,7 +1099,7 @@ Since we want to separate the color button from the OK and Cancel
buttons we next create a spacer and add that to the buttonBox layout.
-\skipto QPushButton
+\skipto TQPushButton
\printuntil addWidget( cancelPushButton
The OK and Cancel buttons are created and added to the buttonBox. We
@@ -1129,7 +1129,7 @@ correct number of decimal places.
\i If the user clicks the Color button we call a setColor() slot.
\i The OK button is connected to the accept() slot; we will update the
elements vector in this slot.
-\i The Cancel button is connected to the QDialog reject() slot, and
+\i The Cancel button is connected to the TQDialog reject() slot, and
requires no further code or action on our part.
\endlist
@@ -1167,9 +1167,9 @@ simpler route: we set the cell's text to the name of the color.
Next we populate the pattern combobox with the patterns. We will use
the position of the chosen pattern in the combobox to determine which
-pattern the user has selected. QTable can make use of QComboTableItem
+pattern the user has selected. QTable can make use of TQComboTableItem
items; but these only support text, so we use setCellWidget() to
-insert \l{QComboBox}'s into the table instead.
+insert \l{TQComboBox}'s into the table instead.
Next we insert the element's label. Finally we set the label color in
the same way as we set the value color.
@@ -1209,7 +1209,7 @@ color. If they chose a color we fill the color cell's pixmap with that
color and set the cell's text to the new color's name.
\skipto ::accept(
-\printuntil QDialog
+\printuntil TQDialog
\printline
If the user clicks OK we must update the elements vector. We iterate
@@ -1220,7 +1220,7 @@ color name as argument. The pattern is set to the pattern combobox's
current item with an offset of 1 (since our pattern numbers begin at
1, but the combobox's items are indexed from 0).
-Finally we call QDialog::accept().
+Finally we call TQDialog::accept().
<p align="right">
<a href="tutorial2-07.html">&laquo; File Handling</a> |
@@ -1244,7 +1244,7 @@ apply to all data sets in one place.
(Extracts from \c optionsform.h.)
\quotefile chart/optionsform.h
-\skipto public QDialog
+\skipto public TQDialog
\printuntil };
The layout of this dialog is slightly more complicated than for the
@@ -1268,7 +1268,7 @@ We include some some pixmaps to use in the chart type combobox.
\skipto OptionsForm::OptionsForm
\printuntil resize
-We pass all the arguments on to the QDialog constructor, set a caption
+We pass all the arguments on to the TQDialog constructor, set a caption
and set an initial size.
The layout of the form will be to have the chart type label and combo
@@ -1328,10 +1328,10 @@ We only need three connections:
\list 1
\i When the user clicks the font button we execute our own
chooseFont() slot.
-\i If the user clicks OK we call QDialog::accept(); it is up to the
+\i If the user clicks OK we call TQDialog::accept(); it is up to the
caller to read the data from the dialog's widgets and perform any
necessary actions.
-\i If the user clicks Cancel we call QDialog::reject().
+\i If the user clicks Cancel we call TQDialog::reject().
\endlist
\skipto setBuddy