diff options
author | Michele Calgaro <[email protected]> | 2024-06-05 19:02:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-06-05 19:02:23 +0900 |
commit | 1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (patch) | |
tree | d62f4174c0e58e1aa895fc71484d068b614cd6de /doc/html/tutorial2-03.html | |
parent | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (diff) | |
download | tqt3-1f0ce8533cc837aa2d4155b5fc17d2004bed0197.tar.gz tqt3-1f0ce8533cc837aa2d4155b5fc17d2004bed0197.zip |
Rename template library nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/tutorial2-03.html')
-rw-r--r-- | doc/html/tutorial2-03.html | 12 |
1 files changed, 6 insertions, 6 deletions
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 <tt>m_propoints</tt> array. <pre> #include <<a href="qcolor-h.html">ntqcolor.h</a>> #include <<a href="qnamespace-h.html">ntqnamespace.h</a>> #include <<a href="qstring-h.html">ntqstring.h</a>> - #include <<a href="qvaluevector-h.html">ntqvaluevector.h</a>> + #include <<a href="tqvaluevector-h.html">tqvaluevector.h</a>> </pre> <p> Although the <tt>Element</tt> class is a purely internal data class, it <tt>#include</tt>s four TQt classes. TQt is often perceived as a purely GUI @@ -67,11 +67,11 @@ enumerations. The <tt>Element</tt> class does not derive from <a href="ntqt.html the TQt enum names. An alternative approach would have been to have made <tt>Element</tt> a <a href="ntqt.html">TQt</a> subclass. We include <a href="qstring-h.html">ntqstring.h</a> to make use of TQt's Unicode strings. As a convenience we will <tt>typedef</tt> a vector container for <tt>Element</tt>s, which is why we -pull in the <a href="qvaluevector-h.html">ntqvaluevector.h</a> header. +pull in the <a href="tqvaluevector-h.html">tqvaluevector.h</a> header. <p> <pre> typedef TQValueVector<Element> ElementVector; </pre> <p> TQt provides a number of containers, some value based like -<a href="ntqvaluevector.html">TQValueVector</a>, and others pointer based. (See <a href="collection.html">Collection Classes</a>.) Here we've just typedefed one container +<a href="tqvaluevector.html">TQValueVector</a>, and others pointer based. (See <a href="collection.html">Collection Classes</a>.) Here we've just typedefed one container type; we will keep each data set of elements in one <tt>ElementVector</tt>. <p> <pre> const double EPSILON = 0.0000001; // Must be > INVALID. </pre> @@ -219,7 +219,7 @@ separator. The final field is the label followed by a newline. bool ok; <a name="x2552"></a> <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList::<a href="ntqstringlist.html#split">split</a>( FIELD_SEP, data ); - <a name="x2555"></a> if ( fields.<a href="ntqvaluelist.html#count">count</a>() >= 4 ) { + <a name="x2555"></a> if ( fields.<a href="tqvaluelist.html#count">count</a>() >= 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; - <a name="x2554"></a> for ( TQStringList::iterator point = propoints.<a href="ntqvaluelist.html#begin">begin</a>(); - <a name="x2556"></a> i < Element::MAX_PROPOINTS && point != propoints.<a href="ntqvaluelist.html#end">end</a>(); + <a name="x2554"></a> for ( TQStringList::iterator point = propoints.<a href="tqvaluelist.html#begin">begin</a>(); + <a name="x2556"></a> i < Element::MAX_PROPOINTS && point != propoints.<a href="tqvaluelist.html#end">end</a>(); ++i, ++point ) { errors = 0; <a href="ntqstringlist.html">TQStringList</a> xy = TQStringList::<a href="ntqstringlist.html#split">split</a>( XY_SEP, *point ); |