diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
| commit | 42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch) | |
| tree | 0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/tutorial2.doc | |
| parent | fef846914f8db6dc117e206ef913d519bf6bb33e (diff) | |
| download | tqt-42957a3f812a1db64a9ae452baa2d3fbc35f2466.tar.gz tqt-42957a3f812a1db64a9ae452baa2d3fbc35f2466.zip | |
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/tutorial2.doc')
| -rw-r--r-- | doc/tutorial2.doc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc index c9d8bfa56..1c79c1954 100644 --- a/doc/tutorial2.doc +++ b/doc/tutorial2.doc @@ -1068,10 +1068,10 @@ The layout of the form is quite simple. The buttons will be grouped together in a horizontal layout and the table and the button layout will be grouped together vertically using the tableButtonBox layout. -\skipto QTable +\skipto TQTable \printuntil addWidget -We create a new QTable with five columns, and the same number of rows +We create a new TQTable with five columns, and the same number of rows as we have elements in the elements vector. We make the color and pattern columns read only: this is to prevent the user typing in them. We will make the color changeable by the user clicking on a color or @@ -1120,7 +1120,7 @@ We now "wire up" the form. \i If the user clicks a cell we call the setColor() slot; this will check that the cell is one that holds a color, and if it is, will invoke the color dialog. -\i We connect the QTable's currentChanged() signal to our own +\i We connect the TQTable's currentChanged() signal to our own currentChanged() slot; this will be used to enable/disable the color button for example, depending on which column the user is in. \i We connect the table's valueChanged() signal to our own @@ -1161,13 +1161,13 @@ We read the element's value color and fill the blank pixmap with that color; we then set the color cell to display this pixmap. We need to be able to read back the color later (e.g. if the user changes it). One way of doing this would be to examine a pixel in the pixmap; -another way would be to subclass QTableItem (in a similar way to our +another way would be to subclass TQTableItem (in a similar way to our CanvasText subclass) and store the color there. But we've taken a 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 TQComboTableItem +pattern the user has selected. TQTable can make use of TQComboTableItem items; but these only support text, so we use setCellWidget() to insert \l{TQComboBox}'s into the table instead. @@ -1306,7 +1306,7 @@ label. The font button is straight-forward. We add a spacer to improve the appearance. The font text label is initially empty (since we don't know what font the user is using). -\skipto QFrame +\skipto TQFrame \printuntil addWidget( addValuesButtonGroup The user may opt to display their own labels as they are or to add the |
