diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/qaxserver-example-tetrax.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/qaxserver-example-tetrax.html')
-rw-r--r-- | doc/html/qaxserver-example-tetrax.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/qaxserver-example-tetrax.html b/doc/html/qaxserver-example-tetrax.html index 4f8418d0a..d0e938285 100644 --- a/doc/html/qaxserver-example-tetrax.html +++ b/doc/html/qaxserver-example-tetrax.html @@ -51,7 +51,7 @@ the five unique IDs required by COM to instantiate and communicate with the server. <pre> #include "qtetrax.h" #include "qdragapp.h" - #include "qfont.h" + #include "ntqfont.h" #include <<a href="qaxfactory-h.html">qaxfactory.h</a>> @@ -61,24 +61,24 @@ the server. "{769F4820-9F28-490f-BA50-5545BD381DCB}", "{5753B1A8-53B9-4abe-8690-6F14EC5CA8D0}", "{DE2F7CE3-CFA7-4938-A9FC-867E2FEB63BA}" ) -</pre>The <tt>main</tt> entry point method instantiates a <a href="qapplication.html">TQApplication</a> object, and +</pre>The <tt>main</tt> entry point method instantiates a <a href="ntqapplication.html">TQApplication</a> object, and creates the GUI only if the program is not running as an ActiveX server (ie. the program has been started by the user, not by COM). <pre> int main( int argc, char **argv ) { - <a name="x2716"></a> TQApplication::<a href="qapplication.html#setColorSpec">setColorSpec</a>( TQApplication::CustomColor ); + <a name="x2716"></a> TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::CustomColor ); TQDragApplication a(argc,argv); TQTetrax *tetrax = 0; if ( !TQAxFactory::isServer() ) { tetrax = new TQTetrax; - <a name="x2718"></a> tetrax-><a href="qwidget.html#setCaption">setCaption</a>("Tetrax"); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>(tetrax); - tetrax-><a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Tetrax"); - tetrax-><a href="qwidget.html#show">show</a>(); + <a name="x2718"></a> tetrax-><a href="ntqwidget.html#setCaption">setCaption</a>("Tetrax"); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(tetrax); + tetrax-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Tetrax"); + tetrax-><a href="ntqwidget.html#show">show</a>(); } </pre>The server enters the application event loop, and destroys the GUI before exiting. -<pre> int res = a.<a href="qapplication.html#exec">exec</a>(); +<pre> int res = a.<a href="ntqapplication.html#exec">exec</a>(); delete tetrax; return res; } |