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-simple.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-simple.html')
-rw-r--r-- | doc/html/qaxserver-example-simple.html | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/doc/html/qaxserver-example-simple.html b/doc/html/qaxserver-example-simple.html index 7a4caf05d..4917179ba 100644 --- a/doc/html/qaxserver-example-simple.html +++ b/doc/html/qaxserver-example-simple.html @@ -33,8 +33,8 @@ body { background: #ffffff; color: black; } -The ActiveX control in this example is a layouted <a href="qwidget.html">TQWidget</a> -with a <a href="qslider.html">TQSlider</a>, a <a href="qlcdnumber.html">TQLCDNumber</a> and a <a href="qlineedit.html">TQLineEdit</a>. +The ActiveX control in this example is a layouted <a href="ntqwidget.html">TQWidget</a> +with a <a href="ntqslider.html">TQSlider</a>, a <a href="ntqlcdnumber.html">TQLCDNumber</a> and a <a href="ntqlineedit.html">TQLineEdit</a>. It provides a signal/slot/property interface to change the values of the slider and the line edit, and to get notified of any property changes. @@ -44,52 +44,52 @@ and <a href="qaxbindable.html#propertyChanged">TQAxBindable::propertyChanged</a> <p> <p> The TQt implementation of the ActiveX for this example is -<pre> class TQSimpleAX : public <a href="qwidget.html">TQWidget</a>, public TQAxBindable +<pre> class TQSimpleAX : public <a href="ntqwidget.html">TQWidget</a>, public TQAxBindable { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( int value READ value WRITE setValue ) public: - TQSimpleAX( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ) - : <a href="qwidget.html">TQWidget</a>( parent, name ) + TQSimpleAX( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ) + : <a href="ntqwidget.html">TQWidget</a>( parent, name ) { <a href="qvboxlayout.html">TQVBoxLayout</a> *vbox = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this ); - slider = new <a href="qslider.html">TQSlider</a>( 0, 100, 1, 0, TQSlider::Horizontal, this ); - LCD = new <a href="qlcdnumber.html">TQLCDNumber</a>( 3, this ); - edit = new <a href="qlineedit.html">TQLineEdit</a>( this ); + slider = new <a href="ntqslider.html">TQSlider</a>( 0, 100, 1, 0, TQSlider::Horizontal, this ); + LCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 3, this ); + edit = new <a href="ntqlineedit.html">TQLineEdit</a>( this ); - <a name="x2528"></a> connect( slider, SIGNAL( <a href="qslider.html#valueChanged">valueChanged</a>( int ) ), this, SLOT( setValue(int) ) ); - <a name="x2523"></a> connect( edit, SIGNAL(<a href="qlineedit.html#textChanged">textChanged</a>(const <a href="qstring.html">TQString</a>&)), this, SLOT(setText(const <a href="qstring.html">TQString</a>&)) ); + <a name="x2528"></a> connect( slider, SIGNAL( <a href="ntqslider.html#valueChanged">valueChanged</a>( int ) ), this, SLOT( setValue(int) ) ); + <a name="x2523"></a> connect( edit, SIGNAL(<a href="ntqlineedit.html#textChanged">textChanged</a>(const <a href="ntqstring.html">TQString</a>&)), this, SLOT(setText(const <a href="ntqstring.html">TQString</a>&)) ); vbox-><a href="qboxlayout.html#addWidget">addWidget</a>( slider ); vbox-><a href="qboxlayout.html#addWidget">addWidget</a>( LCD ); vbox-><a href="qboxlayout.html#addWidget">addWidget</a>( edit ); } - <a href="qstring.html">TQString</a> text() const + <a href="ntqstring.html">TQString</a> text() const { - <a name="x2522"></a> return edit-><a href="qlineedit.html#text">text</a>(); + <a name="x2522"></a> return edit-><a href="ntqlineedit.html#text">text</a>(); } int value() const { - <a name="x2527"></a> return slider-><a href="qslider.html#value">value</a>(); + <a name="x2527"></a> return slider-><a href="ntqslider.html#value">value</a>(); } signals: void someSignal(); void valueChanged(int); - void textChanged(const <a href="qstring.html">TQString</a>&); + void textChanged(const <a href="ntqstring.html">TQString</a>&); public slots: - void setText( const <a href="qstring.html">TQString</a> &string ) + void setText( const <a href="ntqstring.html">TQString</a> &string ) { if ( !requestPropertyChange( "text" ) ) return; - <a name="x2525"></a> edit-><a href="qobject.html#blockSignals">blockSignals</a>( TRUE ); - <a name="x2521"></a> edit-><a href="qlineedit.html#setText">setText</a>( string ); - edit-><a href="qobject.html#blockSignals">blockSignals</a>( FALSE ); + <a name="x2525"></a> edit-><a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE ); + <a name="x2521"></a> edit-><a href="ntqlineedit.html#setText">setText</a>( string ); + edit-><a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE ); emit someSignal(); emit textChanged( string ); @@ -97,26 +97,26 @@ and <a href="qaxbindable.html#propertyChanged">TQAxBindable::propertyChanged</a> } void about() { - <a name="x2524"></a> TQMessageBox::<a href="qmessagebox.html#information">information</a>( this, "About TQSimpleAX", "This is a TQt widget, and this slot has been\n" + <a name="x2524"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "About TQSimpleAX", "This is a TQt widget, and this slot has been\n" "called through ActiveX/OLE automation!" ); } void setValue( int i ) { if ( !requestPropertyChange( "value" ) ) return; - slider-><a href="qobject.html#blockSignals">blockSignals</a>( TRUE ); - <a name="x2526"></a> slider-><a href="qslider.html#setValue">setValue</a>( i ); - slider-><a href="qobject.html#blockSignals">blockSignals</a>( FALSE ); - LCD-><a href="qlcdnumber.html#display">display</a>( i ); + slider-><a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE ); + <a name="x2526"></a> slider-><a href="ntqslider.html#setValue">setValue</a>( i ); + slider-><a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE ); + LCD-><a href="ntqlcdnumber.html#display">display</a>( i ); emit valueChanged( i ); propertyChanged( "value" ); } private: - <a href="qslider.html">TQSlider</a> *slider; - <a href="qlcdnumber.html">TQLCDNumber</a> *LCD; - <a href="qlineedit.html">TQLineEdit</a> *edit; + <a href="ntqslider.html">TQSlider</a> *slider; + <a href="ntqlcdnumber.html">TQLCDNumber</a> *LCD; + <a href="ntqlineedit.html">TQLineEdit</a> *edit; }; </pre> <p> The control is exported using the default <a href="qaxfactory.html">TQAxFactory</a> @@ -142,7 +142,7 @@ WebBrowser to support ActiveX controls, and scripting to be enabled. [Object not available! Did you forget to build and register the server?] </object> </pre> -<p> A simple HTML button is connected to the <a href="activeqt.html#ActiveTQt">ActiveTQt</a>'s about() slot. +<p> A simple HTML button is connected to the <a href="activentqt.html#ActiveTQt">ActiveTQt</a>'s about() slot. <pre> <FORM> <INPUT TYPE="BUTTON" VALUE="About..." onClick="TQSimpleAX.about()"> </FORM> |