summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-2.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/designer-manual-2.html')
-rw-r--r--doc/html/designer-manual-2.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/html/designer-manual-2.html b/doc/html/designer-manual-2.html
index a575d8c13..bb21d5939 100644
--- a/doc/html/designer-manual-2.html
+++ b/doc/html/designer-manual-2.html
@@ -264,13 +264,13 @@ body { background: #ffffff; color: black; }
<p>Next, we will implement the <tt>init()</tt> function which is called when the dialog is created.</p>
<pre> void ConversionForm::init()
{
- numberLineEdit-&gt;setValidator( new <a href="qdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) );
+ numberLineEdit-&gt;setValidator( new <a href="tqdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) );
numberLineEdit-&gt;setText( "10" );
convert();
numberLineEdit-&gt;selectAll();
}
</pre>
- <p>For this function, we set a validator on the numberLineEdit so that the user can only input numbers. To be able to do this, we also need to add <tt>#include &lt;ntqvalidator.h&gt;</tt> at the top of the "conversionform.ui.h" file, before the <tt>init()</tt> function. Lastly, we set the initial input.</p>
+ <p>For this function, we set a validator on the numberLineEdit so that the user can only input numbers. To be able to do this, we also need to add <tt>#include &lt;tqvalidator.h&gt;</tt> at the top of the "conversionform.ui.h" file, before the <tt>init()</tt> function. Lastly, we set the initial input.</p>
<p>We are almost ready to run the application. Before we compile the application, we need a <tt>main.cpp</tt> file.</p>
<ul><li><p>Click <b>File|New</b> to open the New File dialog.</p>
<li><p>Click C++ Main File (<tt>main.cpp</tt>) then click <b>OK</b>.</p>