diff options
Diffstat (limited to 'doc/html/designer-manual-7.html')
-rw-r--r-- | doc/html/designer-manual-7.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html index 389e96ea5..587cff348 100644 --- a/doc/html/designer-manual-7.html +++ b/doc/html/designer-manual-7.html @@ -79,15 +79,15 @@ HEADERS += vcr.h DBFILE = vcr.db </pre> <p>The <tt>qt/tools/designer/examples/vcr/main.cpp</tt> file is also brief:</p> -<pre> #include <<a href="qapplication-h.html">ntqapplication.h</a>> +<pre> #include <<a href="tqapplication-h.html">tqapplication.h</a>> #include "vcr.h" int main( int argc, char ** argv ) { - <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); + <a href="tqapplication.html">TQApplication</a> app( argc, argv ); Vcr *vcr = new Vcr; vcr-><a href="tqwidget.html#show">show</a>(); - return app.<a href="ntqapplication.html#exec">exec</a>(); + return app.<a href="tqapplication.html#exec">exec</a>(); } </pre> <p>Once we're satisfied that the custom widget compiles and runs we are ready to incorporate it into <em>TQt Designer</em>.</p> @@ -222,15 +222,15 @@ DBFILE = vcr.db <p>Although these two files complete the implementation of the FileChooser widget it is good practice to write a test harness to check that the widget behaves as expected before attempting to put it into a plugin.</p> <h5><a name="2-1-3"></a>Testing the Implementation</h5> <!-- index main.cpp --><!-- index Forms!Creating Test Harnesses --><p>We present a rudimentary test harness which will allow us to run our custom widget. The test harness requires two files, a <tt>main.cpp</tt> to contain the FileChooser, and a <tt>.pro</tt> file to create the Makefile from. Here is <tt>qt/tools/designer/examples/filechooser/widget/main.cpp</tt>:</p> -<pre> #include <<a href="qapplication-h.html">ntqapplication.h</a>> +<pre> #include <<a href="tqapplication-h.html">tqapplication.h</a>> #include "filechooser.h" int main( int argc, char ** argv ) { - <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); + <a href="tqapplication.html">TQApplication</a> a( argc, argv ); FileChooser *fc = new FileChooser; fc-><a href="tqwidget.html#show">show</a>(); - return a.<a href="ntqapplication.html#exec">exec</a>(); + return a.<a href="tqapplication.html#exec">exec</a>(); } </pre> <p>And here is <tt>qt/tools/designer/examples/filechooser/widget/filechooser.pro</tt></p> |