summaryrefslogtreecommitdiffstats
path: root/doc/html/sql-overview-insert-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql-overview-insert-main-cpp.html')
-rw-r--r--doc/html/sql-overview-insert-main-cpp.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/sql-overview-insert-main-cpp.html b/doc/html/sql-overview-insert-main-cpp.html
index a56d669af..42ddf63a7 100644
--- a/doc/html/sql-overview-insert-main-cpp.html
+++ b/doc/html/sql-overview-insert-main-cpp.html
@@ -43,8 +43,8 @@ body { background: #ffffff; color: black; }
*****************************************************************************/
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>&gt;
-#include &lt;<a href="qsqlcursor-h.html">ntqsqlcursor.h</a>&gt;
+#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
+#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
@@ -53,17 +53,17 @@ int main( int argc, char *argv[] )
if ( createConnections() ) {
int count = 0;
- <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
+ <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
<a href="ntqstringlist.html">TQStringList</a> names = TQStringList() &lt;&lt;
"Screwdriver" &lt;&lt; "Hammer" &lt;&lt; "Wrench" &lt;&lt; "Saw";
int id = 20;
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-&gt;<a href="ntqsqlrecord.html#setValue">setValue</a>( "id", id );
- buffer-&gt;<a href="ntqsqlrecord.html#setValue">setValue</a>( "name", *name );
- buffer-&gt;<a href="ntqsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id );
- count += cur.<a href="ntqsqlcursor.html#insert">insert</a>();
+ <a href="tqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="tqsqlcursor.html#primeInsert">primeInsert</a>();
+ buffer-&gt;<a href="tqsqlrecord.html#setValue">setValue</a>( "id", id );
+ buffer-&gt;<a href="tqsqlrecord.html#setValue">setValue</a>( "name", *name );
+ buffer-&gt;<a href="tqsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id );
+ count += cur.<a href="tqsqlcursor.html#insert">insert</a>();
id++;
}
}