From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-09.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tutorial2-09.html') diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html index 0ca476d4c..9a744357e 100644 --- a/doc/html/tutorial2-09.html +++ b/doc/html/tutorial2-09.html @@ -43,7 +43,7 @@ apply to all data sets in one place. { TQ_OBJECT public: - OptionsForm( TQWidget* parent = 0, const char* name = "options form", + OptionsForm( TQWidget* parent = 0, const char* name = "options form", bool modal = FALSE, WFlags f = 0 ); ~OptionsForm() {} @@ -95,12 +95,12 @@ things based on the changes the user makes.

We include some some pixmaps to use in the chart type combobox.

The Constructor

-

    OptionsForm::OptionsForm( TQWidget* parent, const char* name,
+

    OptionsForm::OptionsForm( TQWidget* parent, const char* name,
                               bool modal, WFlags f )
         : TQDialog( parent, name, modal, f )
     {
-        setCaption( "Chart -- Options" );
-        resize( 320, 290 );
+        setCaption( "Chart -- Options" );
+        resize( 320, 290 );
 

We pass all the arguments on to the TQDialog constructor, set a caption and set an initial size. @@ -158,10 +158,10 @@ know what font the user is using). addValuesButtonGroup = new TQButtonGroup( "Show Values", addValuesFrame ); addValuesButtonGroup->setColumnLayout(0, TQt::Vertical ); - addValuesButtonGroup->layout()->setSpacing( 6 ); - addValuesButtonGroup->layout()->setMargin( 11 ); + addValuesButtonGroup->layout()->setSpacing( 6 ); + addValuesButtonGroup->layout()->setMargin( 11 ); addValuesButtonGroupLayout = new TQVBoxLayout( - addValuesButtonGroup->layout() ); + addValuesButtonGroup->layout() ); addValuesButtonGroupLayout->setAlignment( TQt::AlignTop ); noRadioButton = new TQRadioButton( "&No", addValuesButtonGroup ); @@ -210,14 +210,14 @@ accelerators. bool ok; TQFont font = TQFontDialog::getFont( &ok, m_font, this ); if ( ok ) - setFont( font ); + 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 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";
-- 
cgit v1.2.3