diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-31 18:33:50 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-31 18:41:44 +0900 |
| commit | e42ec295c2134770a1eb07032f5f22ca4ba1daa6 (patch) | |
| tree | 1ecbc3ad607c79f1ce75ba953f9fe46ea1425b85 /doc/html/designer-manual-2.html | |
| parent | 0917fbb5387978eb7b2e2fd68bcb6beaa8c46505 (diff) | |
| download | tqt-e42ec295.tar.gz tqt-e42ec295.zip | |
Rename remaining ntq[d-h]* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/designer-manual-2.html')
| -rw-r--r-- | doc/html/designer-manual-2.html | 4 |
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->setValidator( new <a href="qdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) ); + numberLineEdit->setValidator( new <a href="tqdoublevalidator.html">TQDoubleValidator</a>( numberLineEdit ) ); numberLineEdit->setText( "10" ); convert(); numberLineEdit->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 <ntqvalidator.h></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 <tqvalidator.h></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> |
