summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-8.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-15 13:05:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-22 10:05:58 +0900
commit397b7afa8e3f32268c4454bf4783ac2a5a799658 (patch)
tree0b41c33e457556bd2b9371788ddbce25263f00d6 /doc/html/designer-manual-8.html
parent755d46927cc6a5719e695aeb8133be6897de62d8 (diff)
downloadtqt3-397b7afa8e3f32268c4454bf4783ac2a5a799658.tar.gz
tqt3-397b7afa8e3f32268c4454bf4783ac2a5a799658.zip
Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/designer-manual-8.html')
-rw-r--r--doc/html/designer-manual-8.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/designer-manual-8.html b/doc/html/designer-manual-8.html
index 9c9716d8d..f22a272e6 100644
--- a/doc/html/designer-manual-8.html
+++ b/doc/html/designer-manual-8.html
@@ -96,19 +96,19 @@ bool createConnections()
<!-- index addDatabase() --><p>We call <tt>addDatabase()</tt> passing it the name of the driver we wish to use. We then set the connection information by calling the <tt>set</tt>... functions. Finally we attempt to open the connection. If we succeed we return TRUE, otherwise we output some error information and return FALSE. From <tt>qt/tools/designer/examples/book/book1/main.cpp</tt></p>
<pre> int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( ! createConnections() )
return 1;
BookForm bookForm;
- app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;bookForm );
+ app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;bookForm );
bookForm.show();
- return app.<a href="ntqapplication.html#exec">exec</a>();
+ return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre>
-<!-- index Databases!Connecting to Multiple Database Servers --><!-- index createConnections() --><!-- index main.cpp --><!-- index addDatabase() --> <p>All the examples presented in this chapter call <tt>createConnections()</tt> after creating the <a href="ntqapplication.html">TQApplication</a> object in their <tt>main.cpp</tt> file and make use of the default connection. If you need to connect to multiple databases use the two-argument form of <tt>addDatabase()</tt>, passing it both the name of the driver and a unique identifier. This is explained further in the <a href="http://doc.trolltech.com/sql.html">TQt SQL Module documentation</a>.</p>
+<!-- index Databases!Connecting to Multiple Database Servers --><!-- index createConnections() --><!-- index main.cpp --><!-- index addDatabase() --> <p>All the examples presented in this chapter call <tt>createConnections()</tt> after creating the <a href="tqapplication.html">TQApplication</a> object in their <tt>main.cpp</tt> file and make use of the default connection. If you need to connect to multiple databases use the two-argument form of <tt>addDatabase()</tt>, passing it both the name of the driver and a unique identifier. This is explained further in the <a href="http://doc.trolltech.com/sql.html">TQt SQL Module documentation</a>.</p>
<!-- index TQSqlDatabase::database() --><p>You do not need to keep a reference to database connections. If you use a single database connection, this becomes the default connection and database functions will use this connection automatically. We can always get a pointer to any of our connections by calling <tt>TQSqlDatabase::database()</tt>.</p>
<p>If you create a <tt>main.cpp</tt> file using <em>TQt Designer</em>, this file will <em>not</em> include <tt>createConnections()</tt>. We do not include this function because it needs the username and password for the database connection, and you may prefer to handle these differently from our simple example function. As a result, applications that preview correctly in <em>TQt Designer</em> will not run unless you implement your own database connections function.</p>
<h3><a name="2"></a>Using <a href="tqdatatable.html">TQDataTable</a></h3>