From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/tutorial2-03.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tutorial2-03.html') diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html index 04cc3f1c9..26aa4864a 100644 --- a/doc/html/tutorial2-03.html +++ b/doc/html/tutorial2-03.html @@ -40,10 +40,10 @@ access for data elements.
    private:
 
        double m_value;
-        TQColor m_valueColor;
+        TQColor m_valueColor;
         int m_valuePattern;
         TQString m_label;
-        TQColor m_labelColor;
+        TQColor m_labelColor;
         double m_propoints[2 * MAX_PROPOINTS];
 

Each element has a value. Each value is displayed graphically with a @@ -52,7 +52,7 @@ with them; the label is drawn using the label color and for each type of chart has a (relative) position stored in the m_propoints array.

-

    #include <ntqcolor.h>
+
    #include <tqcolor.h>
     #include <ntqnamespace.h>
     #include <tqstring.h>
     #include <tqvaluevector.h>
@@ -60,7 +60,7 @@ of chart has a (relative) position stored in the m_propoints array.
 

Although the Element class is a purely internal data class, it #includes four TQt classes. TQt is often perceived as a purely GUI toolkit, but it provides many non-GUI classes to support most aspects -of application programming. We use ntqcolor.h so that we can hold the +of application programming. We use tqcolor.h so that we can hold the paint color and text color in the Element class. The use of ntqnamespace.h is slightly obscure. Most TQt classes are derived from the TQt superclass which contains various enumerations. The Element class does not derive from TQt, so we need to include ntqnamespace.h to have access to @@ -115,7 +115,7 @@ available.

        Element( double value = INVALID, TQColor valueColor = TQt::gray,
                  int valuePattern = TQt::SolidPattern,
                  const TQString& label = TQString::null,
-                 TQColor labelColor = TQt::black ) {
+                 TQColor labelColor = TQt::black ) {
             init( value, valueColor, valuePattern, label, labelColor );
             for ( int i = 0; i < MAX_PROPOINTS * 2; ++i )
                 m_propoints[i] = NO_PROPORTION;
@@ -223,14 +223,14 @@ separator. The final field is the label followed by a newline.
             double value = fields[0].toDouble( &ok );
             if ( !ok )
                 errors++;
-            TQColor valueColor = TQColor( fields[1] );
-            if ( !valueColor.isValid() )
+            TQColor valueColor = TQColor( fields[1] );
+            if ( !valueColor.isValid() )
                 errors++;
             int valuePattern = fields[2].toInt( &ok );
             if ( !ok )
                 errors++;
-            TQColor labelColor = TQColor( fields[3] );
-            if ( !labelColor.isValid() )
+            TQColor labelColor = TQColor( fields[3] );
+            if ( !labelColor.isValid() )
                 errors++;
             TQStringList propoints = TQStringList::split( PROPOINT_SEP, fields[4] );
             TQString label = data.section( FIELD_SEP, 5 );
-- 
cgit v1.2.3