From 1f0ce8533cc837aa2d4155b5fc17d2004bed0197 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 5 Jun 2024 19:02:23 +0900 Subject: Rename template library nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-03.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/tutorial2-03.html') diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html index 1aa7f23c6..4a737dcb2 100644 --- a/doc/html/tutorial2-03.html +++ b/doc/html/tutorial2-03.html @@ -55,7 +55,7 @@ of chart has a (relative) position stored in the m_propoints array.
    #include <ntqcolor.h>
     #include <ntqnamespace.h>
     #include <ntqstring.h>
-    #include <ntqvaluevector.h>
+    #include <tqvaluevector.h>
 

Although the Element class is a purely internal data class, it #includes four TQt classes. TQt is often perceived as a purely GUI @@ -67,11 +67,11 @@ enumerations. The Element class does not derive from TQt subclass. We include ntqstring.h to make use of TQt's Unicode strings. As a convenience we will typedef a vector container for Elements, which is why we -pull in the ntqvaluevector.h header. +pull in the tqvaluevector.h header.

    typedef TQValueVector<Element> ElementVector;
 

TQt provides a number of containers, some value based like -TQValueVector, and others pointer based. (See Collection Classes.) Here we've just typedefed one container +TQValueVector, and others pointer based. (See Collection Classes.) Here we've just typedefed one container type; we will keep each data set of elements in one ElementVector.

    const double EPSILON = 0.0000001; // Must be > INVALID.
 
@@ -219,7 +219,7 @@ separator. The final field is the label followed by a newline. bool ok; TQStringList fields = TQStringList::split( FIELD_SEP, data ); - if ( fields.count() >= 4 ) { + if ( fields.count() >= 4 ) { double value = fields[0].toDouble( &ok ); if ( !ok ) errors++; @@ -238,8 +238,8 @@ separator. The final field is the label followed by a newline. if ( !errors ) { element.set( value, valueColor, valuePattern, label, labelColor ); int i = 0; - for ( TQStringList::iterator point = propoints.begin(); - i < Element::MAX_PROPOINTS && point != propoints.end(); + for ( TQStringList::iterator point = propoints.begin(); + i < Element::MAX_PROPOINTS && point != propoints.end(); ++i, ++point ) { errors = 0; TQStringList xy = TQStringList::split( XY_SEP, *point ); -- cgit v1.2.3