diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/qaxserver-example-multiple.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/qaxserver-example-multiple.html')
-rw-r--r-- | doc/html/qaxserver-example-multiple.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/qaxserver-example-multiple.html b/doc/html/qaxserver-example-multiple.html index 0754c6279..1c96259e3 100644 --- a/doc/html/qaxserver-example-multiple.html +++ b/doc/html/qaxserver-example-multiple.html @@ -33,15 +33,15 @@ body { background: #ffffff; color: black; } -The ActiveX controls in this example are simple <a href="qwidget.html">TQWidget</a> +The ActiveX controls in this example are simple <a href="ntqwidget.html">TQWidget</a> subclasses reimplementing the paintEvent() method. The classes use the Q_CLASSINFO macro to <p> The example demonstrates the use of the Q_CLASSINFO macro to set -<a href="activeqt.html#ActiveTQt">ActiveTQt</a>-specific attributes for <a href="qobject.html">TQObject</a> sub classes, and the use of +<a href="activentqt.html#ActiveTQt">ActiveTQt</a>-specific attributes for <a href="ntqobject.html">TQObject</a> sub classes, and the use of the <a href="qaxfactory.html#TQAXFACTORY_BEGIN">TQAXFACTORY_BEGIN</a>, <a href="qaxfactory.html#TQAXCLASS">TQAXCLASS</a> and <a href="qaxfactory.html#TQAXFACTORY_END">TQAXFACTORY_END</a> macros. <p> -<pre> class TQAxWidget1 : public <a href="qwidget.html">TQWidget</a> +<pre> class TQAxWidget1 : public <a href="ntqwidget.html">TQWidget</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> Q_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}") @@ -51,16 +51,16 @@ the <a href="qaxfactory.html#TQAXFACTORY_BEGIN">TQAXFACTORY_BEGIN</a>, <a href=" Q_CLASSINFO macro. <pre> Q_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor ) public: - TQAxWidget1( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ) - : <a href="qwidget.html">TQWidget</a>( parent, name, f ), fill_color( red ) + TQAxWidget1( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ) + : <a href="ntqwidget.html">TQWidget</a>( parent, name, f ), fill_color( red ) { } - <a href="qcolor.html">TQColor</a> fillColor() const + <a href="ntqcolor.html">TQColor</a> fillColor() const { return fill_color; } - void setFillColor( const <a href="qcolor.html">TQColor</a> &fc ) + void setFillColor( const <a href="ntqcolor.html">TQColor</a> &fc ) { fill_color = fc; repaint(); @@ -69,20 +69,20 @@ Q_CLASSINFO macro. protected: void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> *e ) { - <a href="qpainter.html">TQPainter</a> paint( this ); - <a href="qrect.html">TQRect</a> r = rect(); - <a name="x2544"></a> r.<a href="qrect.html#addCoords">addCoords</a>( 10, 10, -10, -10 ); - <a name="x2543"></a> paint.<a href="qpainter.html#fillRect">fillRect</a>( r, fill_color ); + <a href="ntqpainter.html">TQPainter</a> paint( this ); + <a href="ntqrect.html">TQRect</a> r = rect(); + <a name="x2544"></a> r.<a href="ntqrect.html#addCoords">addCoords</a>( 10, 10, -10, -10 ); + <a name="x2543"></a> paint.<a href="ntqpainter.html#fillRect">fillRect</a>( r, fill_color ); } private: - <a href="qcolor.html">TQColor</a> fill_color; + <a href="ntqcolor.html">TQColor</a> fill_color; }; </pre>The control draws a filled rectangle. The fill color is exposed as a property using the Q_PROPERTY macro. <p> -<pre> class TQAxWidget2 : public <a href="qwidget.html">TQWidget</a> +<pre> class TQAxWidget2 : public <a href="ntqwidget.html">TQWidget</a> { Q_OBJECT Q_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}") @@ -92,12 +92,12 @@ property using the Q_PROPERTY macro. Q_CLASSINFO("StockEvents", "yes") </pre>The declaration of the second control class uses the Q_CLASSINFO macro to set the COM identifiers as well as additional COM attributes for the -class. Objects of that class will not expose the <a href="qwidget.html">TQWidget</a> API, and provide +class. Objects of that class will not expose the <a href="ntqwidget.html">TQWidget</a> API, and provide the ActiveX stock events (ie. Click, KeyDown etc.). <pre> Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth ) public: - TQAxWidget2( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ) - : <a href="qwidget.html">TQWidget</a>( parent, name, f ), line_width( 1 ) + TQAxWidget2( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ) + : <a href="ntqwidget.html">TQWidget</a>( parent, name, f ), line_width( 1 ) { } @@ -114,14 +114,14 @@ the ActiveX stock events (ie. Click, KeyDown etc.). protected: void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> *e ) { - <a href="qpainter.html">TQPainter</a> paint( this ); - <a name="x2546"></a> <a href="qpen.html">TQPen</a> pen = paint.<a href="qpainter.html#pen">pen</a>(); - <a name="x2548"></a> pen.<a href="qpen.html#setWidth">setWidth</a>( line_width ); - <a name="x2547"></a> paint.<a href="qpainter.html#setPen">setPen</a>( pen ); - - <a href="qrect.html">TQRect</a> r = rect(); - <a name="x2549"></a> r.<a href="qrect.html#addCoords">addCoords</a>( 10, 10, -10, -10 ); - <a name="x2545"></a> paint.<a href="qpainter.html#drawEllipse">drawEllipse</a>( r ); + <a href="ntqpainter.html">TQPainter</a> paint( this ); + <a name="x2546"></a> <a href="ntqpen.html">TQPen</a> pen = paint.<a href="ntqpainter.html#pen">pen</a>(); + <a name="x2548"></a> pen.<a href="ntqpen.html#setWidth">setWidth</a>( line_width ); + <a name="x2547"></a> paint.<a href="ntqpainter.html#setPen">setPen</a>( pen ); + + <a href="ntqrect.html">TQRect</a> r = rect(); + <a name="x2549"></a> r.<a href="ntqrect.html#addCoords">addCoords</a>( 10, 10, -10, -10 ); + <a name="x2545"></a> paint.<a href="ntqpainter.html#drawEllipse">drawEllipse</a>( r ); } private: |