diff options
author | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/sql-overview-insert-main-cpp.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/sql-overview-insert-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-insert-main-cpp.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/sql-overview-insert-main-cpp.html b/doc/html/sql-overview-insert-main-cpp.html index 477c1d848..a56d669af 100644 --- a/doc/html/sql-overview-insert-main-cpp.html +++ b/doc/html/sql-overview-insert-main-cpp.html @@ -42,28 +42,28 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qsqldatabase-h.html">qsqldatabase.h</a>> -#include <<a href="qsqlcursor-h.html">qsqlcursor.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>> +#include <<a href="qsqlcursor-h.html">ntqsqlcursor.h</a>> #include "../connection.h" int main( int argc, char *argv[] ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv, FALSE ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE ); if ( createConnections() ) { int count = 0; - <a href="qsqlcursor.html">TQSqlCursor</a> cur( "prices" ); - <a href="qstringlist.html">TQStringList</a> names = TQStringList() << + <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "prices" ); + <a href="ntqstringlist.html">TQStringList</a> names = TQStringList() << "Screwdriver" << "Hammer" << "Wrench" << "Saw"; int id = 20; - for ( TQStringList::Iterator name = names.<a href="qvaluelist.html#begin">begin</a>(); - name != names.<a href="qvaluelist.html#end">end</a>(); ++name ) { - <a href="qsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="qsqlcursor.html#primeInsert">primeInsert</a>(); - buffer-><a href="qsqlrecord.html#setValue">setValue</a>( "id", id ); - buffer-><a href="qsqlrecord.html#setValue">setValue</a>( "name", *name ); - buffer-><a href="qsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id ); - count += cur.<a href="qsqlcursor.html#insert">insert</a>(); + for ( TQStringList::Iterator name = names.<a href="ntqvaluelist.html#begin">begin</a>(); + name != names.<a href="ntqvaluelist.html#end">end</a>(); ++name ) { + <a href="ntqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="ntqsqlcursor.html#primeInsert">primeInsert</a>(); + buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "id", id ); + buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "name", *name ); + buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id ); + count += cur.<a href="ntqsqlcursor.html#insert">insert</a>(); id++; } } |