From 7608f0043b6dfc0b1adcaa8912793e1d3fe7b636 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 20 Oct 2012 20:01:48 -0500 Subject: Automated update from Qt3 --- doc/html/qaxserver-example-multiple.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'doc/html/qaxserver-example-multiple.html') diff --git a/doc/html/qaxserver-example-multiple.html b/doc/html/qaxserver-example-multiple.html index 4336e29c7..045a6f4b9 100644 --- a/doc/html/qaxserver-example-multiple.html +++ b/doc/html/qaxserver-example-multiple.html @@ -35,8 +35,8 @@ body { background: #ffffff; color: black; } The ActiveX controls in this example are simple TQWidget subclasses reimplementing the paintEvent() method. The classes use -the Q_CLASSINFO macro to -

The example demonstrates the use of the Q_CLASSINFO macro to set +the TQ_CLASSINFO macro to +

The example demonstrates the use of the TQ_CLASSINFO macro to set ActiveTQt-specific attributes for TQObject sub classes, and the use of the TQAXFACTORY_BEGIN, TQAXCLASS and TQAXFACTORY_END macros.

@@ -44,12 +44,12 @@ the TQAXFACTORY_BEGIN, TQWidget { TQ_OBJECT - Q_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}") - Q_CLASSINFO("InterfaceID", "{99F6860E-2C5A-42ec-87F2-43396F4BE389}") - Q_CLASSINFO("EventsID", "{0A3E9F27-E4F1-45bb-9E47-63099BCCD0E3}") + TQ_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}") + TQ_CLASSINFO("InterfaceID", "{99F6860E-2C5A-42ec-87F2-43396F4BE389}") + TQ_CLASSINFO("EventsID", "{0A3E9F27-E4F1-45bb-9E47-63099BCCD0E3}") The class declaration includes the TQ_OBJECT macro to activate TQt's meta object system, and sets COM identifiers for the class using the -Q_CLASSINFO macro. -

        Q_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor )
+TQ_CLASSINFO macro.
+
        TQ_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor )
     public:
         TQAxWidget1( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 )
             : TQWidget( parent, name, f ), fill_color( red )
@@ -79,22 +79,22 @@ Q_CLASSINFO macro.
         TQColor fill_color;
     };
 
The control draws a filled rectangle. The fill color is exposed as a -property using the Q_PROPERTY macro. +property using the TQ_PROPERTY macro.

    class TQAxWidget2 : public TQWidget
     {
         TQ_OBJECT
-        Q_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}")
-        Q_CLASSINFO("InterfaceID", "{B66280AB-08CC-4dcc-924F-58E6D7975B7D}")
-        Q_CLASSINFO("EventsID", "{D72BACBA-03C4-4480-B4BB-DE4FE3AA14A0}")
-        Q_CLASSINFO("ToSuperClass", "TQAxWidget2")
-        Q_CLASSINFO("StockEvents", "yes")
-
The declaration of the second control class uses the Q_CLASSINFO macro + TQ_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}") + TQ_CLASSINFO("InterfaceID", "{B66280AB-08CC-4dcc-924F-58E6D7975B7D}") + TQ_CLASSINFO("EventsID", "{D72BACBA-03C4-4480-B4BB-DE4FE3AA14A0}") + TQ_CLASSINFO("ToSuperClass", "TQAxWidget2") + TQ_CLASSINFO("StockEvents", "yes") +
The declaration of the second control class uses the TQ_CLASSINFO macro to set the COM identifiers as well as additional COM attributes for the class. Objects of that class will not expose the TQWidget API, and provide the ActiveX stock events (ie. Click, KeyDown etc.). -
        Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
+
        TQ_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
     public:
         TQAxWidget2( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 )
             : TQWidget( parent, name, f ), line_width( 1 )
@@ -128,7 +128,7 @@ the ActiveX stock events (ie. Click, KeyDown etc.).
         int line_width;
     };
 
The control draws a circle. The line width is exposed as a property -using the Q_PROPERTY macro. +using the TQ_PROPERTY macro.

The controls are exposed by the implementation of TQAxFactory as provided by the TQAXFACTORY_BEGIN and TQAXFACTORY_END macros. -- cgit v1.2.1