summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-2.html
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
committerTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/designer-manual-2.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/designer-manual-2.html')
-rw-r--r--doc/html/designer-manual-2.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/html/designer-manual-2.html b/doc/html/designer-manual-2.html
index 1e9c4869f..22d3e804c 100644
--- a/doc/html/designer-manual-2.html
+++ b/doc/html/designer-manual-2.html
@@ -95,7 +95,7 @@ body { background: #ffffff; color: black; }
</ul><p align="center"><img align="middle" src="qs-addwidg.png" width="422" height="210">
</p>
<p>Now we need to relate each of the text labels to the corresponding widget. We do this by creating "buddies".</p>
-<p>A widget that does not accept focus itself, e.g. a <a href="qlabel.html">TQLabel</a>, can have an accelerator that will pass the focus to its "buddy", e.g. a <a href="qlineedit.html">TQLineEdit</a>. In <em>TQt Designer</em>, we enable this by setting the first widget's <em>buddy</em> property to the name of the buddy widget.</p>
+<p>A widget that does not accept focus itself, e.g. a <a href="ntqlabel.html">TQLabel</a>, can have an accelerator that will pass the focus to its "buddy", e.g. a <a href="ntqlineedit.html">TQLineEdit</a>. In <em>TQt Designer</em>, we enable this by setting the first widget's <em>buddy</em> property to the name of the buddy widget.</p>
<ul><li><p>Click the <b>Set Buddy</b> toolbar button (or press <b>F12</b>). Click the Enter Number label, drag the line to the numberLineEdit, then release.</p>
<li><p>Click the <b>Set Buddy</b> toolbar button. Click the Convert From label, drag the line to the fromComboBox, then release.</p>
<li><p>Click the <b>Set Buddy</b> toolbar button. Click the Convert To label, drag the line to the toComboBox, then release.</p>
@@ -256,8 +256,8 @@ body { background: #ffffff; color: black; }
// set the result
int decimals = decimalsSpinBox-&gt;value();
- resultLineEdit-&gt;setText( TQString::<a href="qstring.html#number">number</a>( result, 'f', decimals ) );
- numberLineEdit-&gt;setText( TQString::<a href="qstring.html#number">number</a>( input, 'f', decimals ) );
+ resultLineEdit-&gt;setText( TQString::<a href="ntqstring.html#number">number</a>( result, 'f', decimals ) );
+ numberLineEdit-&gt;setText( TQString::<a href="ntqstring.html#number">number</a>( input, 'f', decimals ) );
}
</pre>
<p>First, we define some enums for the input and output units. Then we retrieve the input from the numberLineEdit. We convert the input to millimeters because this is the most precise metric unit we support. Then we convert it to inches which is the most precise output unit we support. We then scale it to the selected output unit. Finally, we put the result in the resultLineEdit.</p>
@@ -270,7 +270,7 @@ body { background: #ffffff; color: black; }
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;qvalidator.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;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>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>