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-09.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/tutorial2-09.html') diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html index 07c06d51e..dbc4ad9d5 100644 --- a/doc/html/tutorial2-09.html +++ b/doc/html/tutorial2-09.html @@ -47,8 +47,8 @@ apply to all data sets in one place. bool modal = FALSE, WFlags f = 0 ); ~OptionsForm() {} - TQFont font() const { return m_font; } - void setFont( TQFont font ); + TQFont font() const { return m_font; } + void setFont( TQFont font ); TQLabel *chartTypeTextLabel; TQComboBox *chartTypeComboBox; @@ -77,7 +77,7 @@ apply to all data sets in one place. TQHBoxLayout *buttonsLayout; private: - TQFont m_font; + TQFont m_font; };

The layout of this dialog is slightly more complicated than for the @@ -208,22 +208,22 @@ accelerators.

    void OptionsForm::chooseFont()
     {
         bool ok;
-        TQFont font = TQFontDialog::getFont( &ok, m_font, this );
+        TQFont font = TQFontDialog::getFont( &ok, m_font, this );
         if ( ok )
             setFont( font );
     }
 

When the user clicks the Font button this slot is invoked. It simply -calls the static TQFontDialog::getFont() function to obtain the user's +calls the static TQFontDialog::getFont() function to obtain the user's choice of font. If they chose a font we call our setFont() slot which will present a textual description of the font in the font label. -

    void OptionsForm::setFont( TQFont font )
+

    void OptionsForm::setFont( TQFont font )
     {
-        TQString label = font.family() + " " +
-                        TQString::number( font.pointSize() ) + "pt";
-        if ( font.bold() )
+        TQString label = font.family() + " " +
+                        TQString::number( font.pointSize() ) + "pt";
+        if ( font.bold() )
             label += " Bold";
-        if ( font.italic() )
+        if ( font.italic() )
             label += " Italic";
         fontTextLabel->setText( label );
         m_font = font;
-- 
cgit v1.2.3