diff options
Diffstat (limited to 'doc/html/simple-font-demo-example.html')
-rw-r--r-- | doc/html/simple-font-demo-example.html | 56 |
1 files changed, 28 insertions, 28 deletions
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 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/examples/fonts/simple-qfont-demo/simple-qfont-demo.doc:1 --> +<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/examples/fonts/simple-tqfont-demo/simple-tqfont-demo.doc:1 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p> <p> This example demonstrates the use of various -<a href="ntqfont.html">TQFont</a> member functions. +<a href="tqfont.html">TQFont</a> member functions. <p> <hr> <p> The main window API (viewer.h): <p> <pre>/* $Id: qt/viewer.h 3.3.8 edited May 27 2003 $ */ @@ -44,7 +44,7 @@ body { background: #ffffff; color: black; } #include <<a href="tqwidget-h.html">tqwidget.h</a>> -#include <<a href="qfont-h.html">ntqfont.h</a>> +#include <<a href="tqfont-h.html">tqfont.h</a>> class TQTextView; class TQPushButton; @@ -64,7 +64,7 @@ private slots: private: void setFontSubstitutions(); void layout(); - void showFontInfo( <a href="ntqfont.html">TQFont</a> & ); + void showFontInfo( <a href="tqfont.html">TQFont</a> & ); <a href="tqtextview.html">TQTextView</a> * greetings; <a href="tqtextview.html">TQTextView</a> * fontInfo; @@ -130,11 +130,11 @@ private: void <a name="f591"></a>Viewer::setDefault() { - <a href="ntqfont.html">TQFont</a> font( "Bavaria" ); -<a name="x2843"></a> font.<a href="ntqfont.html#setPointSize">setPointSize</a>( 24 ); + <a href="tqfont.html">TQFont</a> font( "Bavaria" ); +<a name="x2843"></a> font.<a href="tqfont.html#setPointSize">setPointSize</a>( 24 ); -<a name="x2846"></a> font.<a href="ntqfont.html#setWeight">setWeight</a>( TQFont::Bold ); -<a name="x2845"></a> font.<a href="ntqfont.html#setUnderline">setUnderline</a>( TRUE ); +<a name="x2846"></a> font.<a href="tqfont.html#setWeight">setWeight</a>( TQFont::Bold ); +<a name="x2845"></a> font.<a href="tqfont.html#setUnderline">setUnderline</a>( TRUE ); greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); @@ -143,8 +143,8 @@ void <a name="f591"></a>Viewer::setDefault() void <a name="f592"></a>Viewer::setSansSerif() { - <a href="ntqfont.html">TQFont</a> font( "Newyork", 18 ); -<a name="x2844"></a> font.<a href="ntqfont.html#setStyleHint">setStyleHint</a>( TQFont::SansSerif ); + <a href="tqfont.html">TQFont</a> font( "Newyork", 18 ); +<a name="x2844"></a> font.<a href="tqfont.html#setStyleHint">setStyleHint</a>( TQFont::SansSerif ); greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); showFontInfo( font ); @@ -152,33 +152,33 @@ void <a name="f592"></a>Viewer::setSansSerif() void <a name="f593"></a>Viewer::setItalics() { - <a href="ntqfont.html">TQFont</a> font( "Tokyo" ); - font.<a href="ntqfont.html#setPointSize">setPointSize</a>( 32 ); - font.<a href="ntqfont.html#setWeight">setWeight</a>( TQFont::Bold ); -<a name="x2842"></a> font.<a href="ntqfont.html#setItalic">setItalic</a>( TRUE ); + <a href="tqfont.html">TQFont</a> font( "Tokyo" ); + font.<a href="tqfont.html#setPointSize">setPointSize</a>( 32 ); + font.<a href="tqfont.html#setWeight">setWeight</a>( TQFont::Bold ); +<a name="x2842"></a> font.<a href="tqfont.html#setItalic">setItalic</a>( TRUE ); greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); showFontInfo( font ); } -void <a name="f594"></a>Viewer::showFontInfo( <a href="ntqfont.html">TQFont</a> & font ) +void <a name="f594"></a>Viewer::showFontInfo( <a href="tqfont.html">TQFont</a> & font ) { - <a href="ntqfontinfo.html">TQFontInfo</a> info( font ); + <a href="tqfontinfo.html">TQFontInfo</a> info( font ); <a href="tqstring.html">TQString</a> messageText; messageText = "Font requested: \"" + -<a name="x2838"></a> font.<a href="ntqfont.html#family">family</a>() + "\" " + -<a name="x2851"></a><a name="x2841"></a> TQString::<a href="tqstring.html#number">number</a>( font.<a href="ntqfont.html#pointSize">pointSize</a>() ) + "pt<BR>" + +<a name="x2838"></a> font.<a href="tqfont.html#family">family</a>() + "\" " + +<a name="x2851"></a><a name="x2841"></a> TQString::<a href="tqstring.html#number">number</a>( font.<a href="tqfont.html#pointSize">pointSize</a>() ) + "pt<BR>" + "Font used: \"" + -<a name="x2848"></a> info.<a href="ntqfontinfo.html#family">family</a>() + "\" " + -<a name="x2849"></a> TQString::<a href="tqstring.html#number">number</a>( info.<a href="ntqfontinfo.html#pointSize">pointSize</a>() ) + "pt<P>"; +<a name="x2848"></a> info.<a href="tqfontinfo.html#family">family</a>() + "\" " + +<a name="x2849"></a> TQString::<a href="tqstring.html#number">number</a>( info.<a href="tqfontinfo.html#pointSize">pointSize</a>() ) + "pt<P>"; -<a name="x2847"></a> <a href="tqstringlist.html">TQStringList</a> substitutions = TQFont::<a href="ntqfont.html#substitutes">substitutes</a>( font.<a href="ntqfont.html#family">family</a>() ); +<a name="x2847"></a> <a href="tqstringlist.html">TQStringList</a> substitutions = TQFont::<a href="tqfont.html#substitutes">substitutes</a>( font.<a href="tqfont.html#family">family</a>() ); <a name="x2856"></a> if ( ! substitutions.<a href="tqvaluelist.html#isEmpty">isEmpty</a>() ){ messageText += "The following substitutions exist for " + \ - font.<a href="ntqfont.html#family">family</a>() + ":<UL>"; + font.<a href="tqfont.html#family">family</a>() + ":<UL>"; TQStringList::Iterator i = substitutions.<a href="tqvaluelist.html#begin">begin</a>(); while ( i != substitutions.<a href="tqvaluelist.html#end">end</a>() ){ @@ -188,7 +188,7 @@ void <a name="f594"></a>Viewer::showFontInfo( <a href="ntqfont.html">TQFont</a> messageText += "</UL>"; } else { messageText += "No substitutions exist for " + \ - font.<a href="ntqfont.html#family">family</a>() + "."; + font.<a href="tqfont.html#family">family</a>() + "."; } fontInfo-><a href="tqtextedit.html#setText">setText</a>( messageText ); @@ -201,9 +201,9 @@ void <a name="f595"></a>Viewer::setFontSubstitutions() substitutes += "Mincho", substitutes << "Arabic Newspaper" << "crox"; -<a name="x2840"></a> TQFont::<a href="ntqfont.html#insertSubstitutions">insertSubstitutions</a>( "Bavaria", substitutes ); +<a name="x2840"></a> TQFont::<a href="tqfont.html#insertSubstitutions">insertSubstitutions</a>( "Bavaria", substitutes ); -<a name="x2839"></a> TQFont::<a href="ntqfont.html#insertSubstitution">insertSubstitution</a>( "Tokyo", "Lucida" ); +<a name="x2839"></a> TQFont::<a href="tqfont.html#insertSubstitution">insertSubstitution</a>( "Tokyo", "Lucida" ); } @@ -243,8 +243,8 @@ void <a name="f595"></a>Viewer::setFontSubstitutions() </pre> <p> <hr> -<p> main() program (simple-qfont-demo.cpp): -<p> <pre>/* $Id: qt/simple-qfont-demo.cpp 3.3.8 edited May 27 2003 $ */ +<p> main() program (simple-tqfont-demo.cpp): +<p> <pre>/* $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 ) } </pre> -<p> <p>See also <a href="qfont-examples.html">TQFont Examples</a>. +<p> <p>See also <a href="tqfont-examples.html">TQFont Examples</a>. <!-- eof --> <p><address><hr><div align=center> |