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/qaxserver-example-hierarchy.html | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/html/qaxserver-example-hierarchy.html') diff --git a/doc/html/qaxserver-example-hierarchy.html b/doc/html/qaxserver-example-hierarchy.html index de5115c16..a018cba46 100644 --- a/doc/html/qaxserver-example-hierarchy.html +++ b/doc/html/qaxserver-example-hierarchy.html @@ -33,15 +33,15 @@ body { background: #ffffff; color: black; } -The ActiveX control in this example is a TQWidget +The ActiveX control in this example is a TQWidget subclass with child widgets that are accessible as sub types.

-

    class TQParentWidget : public TQWidget
+
    class TQParentWidget : public TQWidget
     {
         TQ_OBJECT
     public:
-        TQParentWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
+        TQParentWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
 
         TQSize sizeHint() const;
 
@@ -57,8 +57,8 @@ subclass with child widgets that are accessible as sub types.
 with a name, and to return a pointer to a named widget.
 

-

    TQParentWidget::TQParentWidget( TQWidget *parent, const char *name, WFlags f )
-    : TQWidget( parent, name, f )
+
    TQParentWidget::TQParentWidget( TQWidget *parent, const char *name, WFlags f )
+    : TQWidget( parent, name, f )
     {
         vbox = new TQVBoxLayout( this );
         vbox->setAutoAdd( TRUE );
@@ -69,7 +69,7 @@ New child widgets are automatically added to the layout.
     {
         TQSubWidget *sw = new TQSubWidget( this, name );
         sw->setLabel( name );
-        sw->show();
+        sw->show();
     }
 
The createSubWidget slot creates a new TQSubWidget with the name provided in the parameter, and sets the label to that @@ -83,12 +83,12 @@ returns the first child of type TQSubWidget that has the requested name.

-

    class TQSubWidget : public TQWidget
+
    class TQSubWidget : public TQWidget
     {
         TQ_OBJECT
         TQ_PROPERTY( TQString label READ label WRITE setLabel )
     public:
-        TQSubWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
+        TQSubWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
 
         void setLabel( const TQString &text );
         TQString label() const;
@@ -105,8 +105,8 @@ name.
 and implements the paintEvent to draw the label.
 

-

    TQSubWidget::TQSubWidget( TQWidget *parent, const char *name, WFlags f )
-    : TQWidget( parent, name, f )
+
    TQSubWidget::TQSubWidget( TQWidget *parent, const char *name, WFlags f )
+    : TQWidget( parent, name, f )
     {
     }
 
@@ -114,7 +114,7 @@ and implements the paintEvent to draw the label.
     {
         lbl = text;
         setName( text );
-        update();
+        update();
     }
 
     TQString TQSubWidget::label() const
@@ -122,17 +122,17 @@ and implements the paintEvent to draw the label.
         return lbl;
     }
 
-    TQSize TQSubWidget::sizeHint() const
+    TQSize TQSubWidget::sizeHint() const
     {
-        TQFontMetrics fm( font() );
+        TQFontMetrics fm( font() );
         return TQSize( fm.width(lbl), fm.height() );
     }
 
-    void TQSubWidget::paintEvent( TQPaintEvent * )
+    void TQSubWidget::paintEvent( TQPaintEvent * )
     {
         TQPainter painter(this);
-        painter.setPen( colorGroup().text() );
-        painter.drawText( rect(), AlignCenter, lbl );
+        painter.setPen( colorGroup().text() );
+        painter.drawText( rect(), AlignCenter, lbl );
     }
 
The implementation of the TQSubWidget class is self-explanatory.

@@ -153,7 +153,7 @@ and implements the paintEvent to draw the label.

The ActiveTQtFactory class implements a TQAxFactory. It returns the class names of all supported types, TQParentWidget and TQSubWidget, from the featureList() reimplementation. -

        TQWidget *create( const TQString &key, TQWidget *parent, const char *name )
+

        TQWidget *create( const TQString &key, TQWidget *parent, const char *name )
         {
             if ( key == "TQParentWidget" )
                 return new TQParentWidget( parent, name );
@@ -200,7 +200,7 @@ well to be able to marshal calls correctly.
         }
     };
 
Objects of the TQSubWidget type should not expose the full -functionality of e.g. TQWidget. Only those properties and slots +functionality of e.g. TQWidget. Only those properties and slots explicitly declared in the type are accessible.

    TQAXFACTORY_EXPORT( ActiveTQtFactory, "{9e626211-be62-4d18-9483-9419358fbb03}", "{75c276de-1df5-451f-a004-e4fa1a587df1}" )
 
The factory is then exported using the TQAXFACTORY_EXPORT -- cgit v1.2.1