diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-29 12:43:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-29 12:43:23 +0900 |
commit | fef846914f8db6dc117e206ef913d519bf6bb33e (patch) | |
tree | d6567b31f7f22d0c8c66eec947dff1960efa25ac /doc/sql.doc | |
parent | 8ef4ea451dd81dd66b34ed31aaa631f6df24a192 (diff) | |
download | tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.tar.gz tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.zip |
Rename basic widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/sql.doc')
-rw-r--r-- | doc/sql.doc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/sql.doc b/doc/sql.doc index f57ba7746..4a5206b47 100644 --- a/doc/sql.doc +++ b/doc/sql.doc @@ -871,8 +871,8 @@ We include the header files for the widgets that we need. We also include \c tqsqldatabase.h and \c tqsqlcursor.h as usual, but we now add \c tqsqlform.h. -The form will be presented as a dialog so we subclass \l QDialog with -our own FormDialog class. We use a \l QLineEdit for the salary so that +The form will be presented as a dialog so we subclass \l TQDialog with +our own FormDialog class. We use a \l TQLineEdit for the salary so that the user can change it. All the widgets are laid out using a grid. We create a cursor on the staff table, select all records and move to @@ -923,7 +923,7 @@ right pad the fields are removed when the fields are retrieved. Properties that we might wish to apply to fields, such as alignment and validation are achieved in the conventional way, for example, by -calling QLineEdit::setAlignment() and QLineEdit::setValidator(). +calling TQLineEdit::setAlignment() and TQLineEdit::setValidator(). \skipto forenameEdit \printline forenameEdit @@ -934,7 +934,7 @@ calling QLineEdit::setAlignment() and QLineEdit::setValidator(). The FormDialog constructor is similar to the one in the previous example. We have changed the forename and surname widgets to -\l{QLineEdit}s to make them editable and have added a \l QPushButton +\l{TQLineEdit}s to make them editable and have added a \l TQPushButton the user can click to save their updates. \skipto saveButton @@ -960,7 +960,7 @@ cursor's update buffer. \printline insert \printuntil readFields -Now we link the buffer's fields to the \l QLineEdit controls. (In the +Now we link the buffer's fields to the \l TQLineEdit controls. (In the previous example we linked the cursor's fields.) The edit controls are populated by the readFields() call as before. @@ -1012,7 +1012,7 @@ sql/overview/custom1/main.h and \l sql/overview/custom1/main.cpp \printline CustomEdit \printuntil }; -We've created a simple subclass of QLineEdit and added a property, +We've created a simple subclass of TQLineEdit and added a property, upperLineText, which will hold an uppercase version of the text. We also created a slot, changed(). @@ -1027,7 +1027,7 @@ to our FormDialog's private data. \printline CustomEdit \printuntil } -In the CustomEdit constructor we use the QLineEdit constructor and add +In the CustomEdit constructor we use the TQLineEdit constructor and add a connection between the textChanged signal and our own changed slot. \skipto changed @@ -1055,7 +1055,7 @@ CustomEdit instances directly to database fields. \printline CustomEdit We use the same FormDialog as we did before, but this time replace two -of the QLineEdit widgets with our own CustomEdit widgets. +of the TQLineEdit widgets with our own CustomEdit widgets. Laying out the grid and setting up the cursor is the same as before. @@ -1085,7 +1085,7 @@ our CustomEdit widget. We must reimpliment TQSqlEditorFactory to use custom editor widgets in tables. In the following example we will create a custom editor based -on QComboBox and a TQSqlEditorFactory subclass to show how a TQDataTable +on TQComboBox and a TQSqlEditorFactory subclass to show how a TQDataTable can use a custom editor. \quotefile sql/overview/table3/main.h |