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 54df825f3..059683a0e 100644
--- a/doc/html/designer-manual-2.html
+++ b/doc/html/designer-manual-2.html
@@ -256,8 +256,8 @@ body { background: #ffffff; color: black; }
// set the result
int decimals = decimalsSpinBox->value();
- 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 ) );
+ resultLineEdit-&gt;setText( TQString::<a href="tqstring.html#number">number</a>( result, 'f', decimals ) );
+ numberLineEdit-&gt;setText( TQString::<a href="tqstring.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>