summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial2-04.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/tutorial2-04.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/tutorial2-04.html')
-rw-r--r--doc/html/tutorial2-04.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/tutorial2-04.html b/doc/html/tutorial2-04.html
index cdbe2b6bf..755c2c927 100644
--- a/doc/html/tutorial2-04.html
+++ b/doc/html/tutorial2-04.html
@@ -36,29 +36,29 @@ body { background: #ffffff; color: black; }
<p> (<tt>main.cpp</tt>.)
<p>
-<pre> #include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include "chartform.h"
int main( int argc, char *argv[] )
{
- <a href="qapplication.html">TQApplication</a> app( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
- <a href="qstring.html">TQString</a> filename;
- <a name="x2557"></a> if ( app.<a href="qapplication.html#argc">argc</a>() &gt; 1 ) {
- <a name="x2558"></a> filename = app.<a href="qapplication.html#argv">argv</a>()[1];
- <a name="x2561"></a> if ( !filename.<a href="qstring.html#endsWith">endsWith</a>( ".cht" ) )
- filename = <a href="qstring.html#TQString-null">TQString::null</a>;
+ <a href="ntqstring.html">TQString</a> filename;
+ <a name="x2557"></a> if ( app.<a href="ntqapplication.html#argc">argc</a>() &gt; 1 ) {
+ <a name="x2558"></a> filename = app.<a href="ntqapplication.html#argv">argv</a>()[1];
+ <a name="x2561"></a> if ( !filename.<a href="ntqstring.html#endsWith">endsWith</a>( ".cht" ) )
+ filename = <a href="ntqstring.html#TQString-null">TQString::null</a>;
}
ChartForm *cf = new ChartForm( filename );
- <a name="x2560"></a> app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( cf );
- cf-&gt;<a href="qwidget.html#show">show</a>();
+ <a name="x2560"></a> app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( cf );
+ cf-&gt;<a href="ntqwidget.html#show">show</a>();
- return app.<a href="qapplication.html#exec">exec</a>();
+ return app.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>
<p> We have kept the main() function simple and small. We create a
-<a href="qapplication.html">TQApplication</a> object and pass it the command line arguments. We are
+<a href="ntqapplication.html">TQApplication</a> object and pass it the command line arguments. We are
allowing users to invoke the program with <tt>chart mychart.cht</tt>, so if
they've added a filename we pass that through to the chart form
constructor. Most of the action takes place within the chart form