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/simple-font-demo-example.html | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'doc/html/simple-font-demo-example.html') diff --git a/doc/html/simple-font-demo-example.html b/doc/html/simple-font-demo-example.html index 728f9a0ec..4dc4addac 100644 --- a/doc/html/simple-font-demo-example.html +++ b/doc/html/simple-font-demo-example.html @@ -1,5 +1,5 @@ - + @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }

This example demonstrates the use of various -TQFont member functions. +TQFont member functions.


The main window API (viewer.h):

/* $Id: qt/viewer.h   3.3.8   edited May 27 2003 $ */
@@ -44,7 +44,7 @@ body { background: #ffffff; color: black; }
 
 
 #include <tqwidget.h>
-#include <ntqfont.h>
+#include <tqfont.h>
 
 class TQTextView;
 class TQPushButton;
@@ -64,7 +64,7 @@ private slots:
 private:
     void setFontSubstitutions();
     void layout();
-    void showFontInfo( TQFont & );
+    void showFontInfo( TQFont & );
 
     TQTextView * greetings;
     TQTextView * fontInfo;
@@ -130,11 +130,11 @@ private:
 
 void Viewer::setDefault()
 {
-    TQFont font( "Bavaria" );
-    font.setPointSize( 24 );
+    TQFont font( "Bavaria" );
+    font.setPointSize( 24 );
 
-    font.setWeight( TQFont::Bold );
-    font.setUnderline( TRUE );
+    font.setWeight( TQFont::Bold );
+    font.setUnderline( TRUE );
 
     greetings->setFont( font );
 
@@ -143,8 +143,8 @@ void Viewer::setDefault()
 
 void Viewer::setSansSerif()
 {
-    TQFont font( "Newyork", 18 );
-    font.setStyleHint( TQFont::SansSerif );
+    TQFont font( "Newyork", 18 );
+    font.setStyleHint( TQFont::SansSerif );
     greetings->setFont( font );
 
     showFontInfo( font );
@@ -152,33 +152,33 @@ void Viewer::setSansSerif()
 
 void Viewer::setItalics()
 {
-    TQFont font( "Tokyo" );
-    font.setPointSize( 32 );
-    font.setWeight( TQFont::Bold );
-    font.setItalic( TRUE );
+    TQFont font( "Tokyo" );
+    font.setPointSize( 32 );
+    font.setWeight( TQFont::Bold );
+    font.setItalic( TRUE );
 
     greetings->setFont( font );
 
     showFontInfo( font );
 }
 
-void Viewer::showFontInfo( TQFont & font )
+void Viewer::showFontInfo( TQFont & font )
 {
-    TQFontInfo info( font );
+    TQFontInfo info( font );
 
     TQString messageText;
     messageText = "Font requested: \"" +
-                  font.family() + "\" " +
-                  TQString::number( font.pointSize() ) + "pt<BR>" +
+                  font.family() + "\" " +
+                  TQString::number( font.pointSize() ) + "pt<BR>" +
                   "Font used: \"" +
-                  info.family() + "\" " +
-                  TQString::number( info.pointSize() ) + "pt<P>";
+                  info.family() + "\" " +
+                  TQString::number( info.pointSize() ) + "pt<P>";
 
-    TQStringList substitutions = TQFont::substitutes( font.family() );
+    TQStringList substitutions = TQFont::substitutes( font.family() );
 
     if ( ! substitutions.isEmpty() ){
         messageText += "The following substitutions exist for " + \
-                       font.family() + ":<UL>";
+                       font.family() + ":<UL>";
 
         TQStringList::Iterator i = substitutions.begin();
         while ( i != substitutions.end() ){
@@ -188,7 +188,7 @@ void Viewer::showFontInfo( TQFont
          messageText += "</UL>";
     } else {
         messageText += "No substitutions exist for " + \
-                       font.family() + ".";
+                       font.family() + ".";
     }
 
     fontInfo->setText( messageText );
@@ -201,9 +201,9 @@ void Viewer::setFontSubstitutions()
     substitutes +=  "Mincho",
     substitutes << "Arabic Newspaper" << "crox";
 
-    TQFont::insertSubstitutions( "Bavaria", substitutes );
+    TQFont::insertSubstitutions( "Bavaria", substitutes );
 
-    TQFont::insertSubstitution( "Tokyo", "Lucida" );
+    TQFont::insertSubstitution( "Tokyo", "Lucida" );
 }
 
 
@@ -243,8 +243,8 @@ void Viewer::setFontSubstitutions()
 


-

main() program (simple-qfont-demo.cpp): -

/* $Id: qt/simple-qfont-demo.cpp   3.3.8   edited May 27 2003 $ */
+

main() program (simple-tqfont-demo.cpp): +

/* $Id: qt/simple-tqfont-demo.cpp   3.3.8   edited May 27 2003 $ */
 
 #include "viewer.h"
 
@@ -261,7 +261,7 @@ int main( int argc, char **argv )
 }
 
-

See also TQFont Examples. +

See also TQFont Examples.


-- cgit v1.2.3