diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-05 19:02:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-05 19:02:23 +0900 |
commit | 1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (patch) | |
tree | d62f4174c0e58e1aa895fc71484d068b614cd6de /doc/html/sql.html | |
parent | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (diff) | |
download | tqt-1f0ce853.tar.gz tqt-1f0ce853.zip |
Rename template library nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/sql.html')
-rw-r--r-- | doc/html/sql.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/sql.html b/doc/html/sql.html index 6b5687d42..ed5a06248 100644 --- a/doc/html/sql.html +++ b/doc/html/sql.html @@ -857,8 +857,8 @@ changes to the database are accurately reflected in the cursor. <a href="ntqstringlist.html">TQStringList</a> names = TQStringList() << "Screwdriver" << "Hammer" << "Wrench" << "Saw"; int id = 20; - <a name="x2197"></a> for ( TQStringList::Iterator name = names.<a href="ntqvaluelist.html#begin">begin</a>(); - <a name="x2198"></a> name != names.<a href="ntqvaluelist.html#end">end</a>(); ++name ) { + <a name="x2197"></a> for ( TQStringList::Iterator name = names.<a href="tqvaluelist.html#begin">begin</a>(); + <a name="x2198"></a> name != names.<a href="tqvaluelist.html#end">end</a>(); ++name ) { <a name="x2195"></a> <a href="tqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="tqsqlcursor.html#primeInsert">primeInsert</a>(); <a name="x2196"></a> buffer-><a href="tqsqlrecord.html#setValue">setValue</a>( "id", id ); buffer-><a href="tqsqlrecord.html#setValue">setValue</a>( "name", *name ); @@ -1304,13 +1304,13 @@ can use a custom editor. int statusId() const; void setStatusId( int id ); private: - <a href="ntqmap.html">TQMap</a>< int, int > index2id; + <a href="tqmap.html">TQMap</a>< int, int > index2id; }; </pre><blockquote><p align="center"><em> From <a href="sql-overview-table3-main-h.html">sql/overview/table3/main.h</a> </em></p> </blockquote><p> We create a property, statusid, and define our READ and WRITE methods for it. The statusid's in the status table will probably be different -from the combobox's indexes so we create a <a href="ntqmap.html">TQMap</a> to map combobox indexes +from the combobox's indexes so we create a <a href="tqmap.html">TQMap</a> to map combobox indexes to/from the statusids that we will list in the combobox. <p> <pre> class CustomSqlEditorFactory : public <a href="tqsqleditorfactory.html">TQSqlEditorFactory</a> { @@ -1340,7 +1340,7 @@ function since that is the only function we need to reimplement. </blockquote><p> In the StatusPicker's constructor we create a cursor over the status table indexed by the name field. We then iterate over each record in the status table inserting each name into the combobox. We store the -statusid for each name in the index2id <a href="ntqmap.html">TQMap</a> using the same TQMap index as +statusid for each name in the index2id <a href="tqmap.html">TQMap</a> using the same TQMap index as the combobox index. <p> <pre> int StatusPicker::statusId() const { |