diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/simple-font-demo-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/simple-font-demo-example.html')
-rw-r--r-- | doc/html/simple-font-demo-example.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/html/simple-font-demo-example.html b/doc/html/simple-font-demo-example.html index c7c8ac1e9..ad605e7fc 100644 --- a/doc/html/simple-font-demo-example.html +++ b/doc/html/simple-font-demo-example.html @@ -43,13 +43,13 @@ body { background: #ffffff; color: black; } #define VIEWER_H -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qfont-h.html">ntqfont.h</a>> class TQTextView; class TQPushButton; -class Viewer : public <a href="ntqwidget.html">TQWidget</a> +class Viewer : public <a href="tqwidget.html">TQWidget</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> @@ -89,7 +89,7 @@ private: #include <<a href="qlayout-h.html">ntqlayout.h</a>> <a name="f590"></a>Viewer::Viewer() - :<a href="ntqwidget.html">TQWidget</a>() + :<a href="tqwidget.html">TQWidget</a>() { setFontSubstitutions(); @@ -109,23 +109,23 @@ private: defaultButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Default", this, "pushbutton1" ); -<a name="x2860"></a> defaultButton-><a href="ntqwidget.html#setFont">setFont</a>( TQFont( "times" ) ); +<a name="x2860"></a> defaultButton-><a href="tqwidget.html#setFont">setFont</a>( TQFont( "times" ) ); <a href="tqobject.html#connect">connect</a>( defaultButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( setDefault() ) ); sansSerifButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Sans Serif", this, "pushbutton2" ); - sansSerifButton-><a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Helvetica", 12 ) ); + sansSerifButton-><a href="tqwidget.html#setFont">setFont</a>( TQFont( "Helvetica", 12 ) ); <a href="tqobject.html#connect">connect</a>( sansSerifButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( setSansSerif() ) ); italicsButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Italics", this, "pushbutton3" ); - italicsButton-><a href="ntqwidget.html#setFont">setFont</a>( TQFont( "lucida", 12, TQFont::Bold, TRUE ) ); + italicsButton-><a href="tqwidget.html#setFont">setFont</a>( TQFont( "lucida", 12, TQFont::Bold, TRUE ) ); <a href="tqobject.html#connect">connect</a>( italicsButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( setItalics() ) ); - <a href="ntqwidget.html#layout">layout</a>(); + <a href="tqwidget.html#layout">layout</a>(); } void <a name="f591"></a>Viewer::setDefault() @@ -136,7 +136,7 @@ void <a name="f591"></a>Viewer::setDefault() <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 ); - greetings-><a href="ntqwidget.html#setFont">setFont</a>( font ); + greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); showFontInfo( font ); } @@ -145,7 +145,7 @@ 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 ); - greetings-><a href="ntqwidget.html#setFont">setFont</a>( font ); + greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); showFontInfo( font ); } @@ -157,7 +157,7 @@ void <a name="f593"></a>Viewer::setItalics() font.<a href="ntqfont.html#setWeight">setWeight</a>( TQFont::Bold ); <a name="x2842"></a> font.<a href="ntqfont.html#setItalic">setItalic</a>( TRUE ); - greetings-><a href="ntqwidget.html#setFont">setFont</a>( font ); + greetings-><a href="tqwidget.html#setFont">setFont</a>( font ); showFontInfo( font ); } @@ -211,7 +211,7 @@ void <a name="f595"></a>Viewer::setFontSubstitutions() // the following function might not be of particular interest: // all it does is creating the widget layout. -<a name="x2858"></a>void Viewer::<a href="ntqwidget.html#layout">layout</a>() +<a name="x2858"></a>void Viewer::<a href="tqwidget.html#layout">layout</a>() { <a href="qhboxlayout.html">TQHBoxLayout</a> * textViewContainer = new <a href="qhboxlayout.html">TQHBoxLayout</a>(); textViewContainer-><a href="qboxlayout.html#addWidget">addWidget</a>( greetings ); @@ -223,22 +223,22 @@ void <a name="f595"></a>Viewer::setFontSubstitutions() buttonContainer-><a href="qboxlayout.html#addWidget">addWidget</a>( sansSerifButton ); buttonContainer-><a href="qboxlayout.html#addWidget">addWidget</a>( italicsButton ); -<a name="x2857"></a> int maxButtonHeight = defaultButton-><a href="ntqwidget.html#height">height</a>(); +<a name="x2857"></a> int maxButtonHeight = defaultButton-><a href="tqwidget.html#height">height</a>(); - if ( sansSerifButton-><a href="ntqwidget.html#height">height</a>() > maxButtonHeight ) - maxButtonHeight = sansSerifButton-><a href="ntqwidget.html#height">height</a>(); - if ( italicsButton-><a href="ntqwidget.html#height">height</a>() > maxButtonHeight ) - maxButtonHeight = italicsButton-><a href="ntqwidget.html#height">height</a>(); + if ( sansSerifButton-><a href="tqwidget.html#height">height</a>() > maxButtonHeight ) + maxButtonHeight = sansSerifButton-><a href="tqwidget.html#height">height</a>(); + if ( italicsButton-><a href="tqwidget.html#height">height</a>() > maxButtonHeight ) + maxButtonHeight = italicsButton-><a href="tqwidget.html#height">height</a>(); -<a name="x2859"></a> defaultButton-><a href="ntqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); - sansSerifButton-><a href="ntqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); - italicsButton-><a href="ntqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); +<a name="x2859"></a> defaultButton-><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); + sansSerifButton-><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); + italicsButton-><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( maxButtonHeight ); <a href="qvboxlayout.html">TQVBoxLayout</a> * container = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this ); <a name="x2835"></a> container-><a href="qboxlayout.html#addLayout">addLayout</a>( textViewContainer ); container-><a href="qboxlayout.html#addLayout">addLayout</a>( buttonContainer ); - <a href="ntqwidget.html#resize">resize</a>( 700, 250 ); + <a href="tqwidget.html#resize">resize</a>( 700, 250 ); } </pre> @@ -254,9 +254,9 @@ int main( int argc, char **argv ) { <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); Viewer * textViewer = new Viewer(); - textViewer-><a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Simple TQFont Demo" ); + textViewer-><a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Simple TQFont Demo" ); app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( textViewer ); - textViewer-><a href="ntqwidget.html#show">show</a>(); + textViewer-><a href="tqwidget.html#show">show</a>(); return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |