diff options
Diffstat (limited to 'doc/html/qaxcontainer-example-webbrowser.html')
-rw-r--r-- | doc/html/qaxcontainer-example-webbrowser.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/qaxcontainer-example-webbrowser.html b/doc/html/qaxcontainer-example-webbrowser.html index 76f4b3a38..6f60fada9 100644 --- a/doc/html/qaxcontainer-example-webbrowser.html +++ b/doc/html/qaxcontainer-example-webbrowser.html @@ -45,13 +45,13 @@ already been set up within TQt Designer. <pre> void MainWindow::init() { - pb = new <a href="qprogressbar.html">TQProgressBar</a>( statusBar() ); - <a name="x2513"></a> pb-><a href="qprogressbar.html#setPercentageVisible">setPercentageVisible</a>( FALSE ); - <a name="x2516"></a> pb-><a href="qwidget.html#hide">hide</a>(); + pb = new <a href="ntqprogressbar.html">TQProgressBar</a>( statusBar() ); + <a name="x2513"></a> pb-><a href="ntqprogressbar.html#setPercentageVisible">setPercentageVisible</a>( FALSE ); + <a name="x2516"></a> pb-><a href="ntqwidget.html#hide">hide</a>(); statusBar()->addWidget( pb, 0, TRUE ); connect( WebBrowser, SIGNAL(ProgressChange(int,int)), this, SLOT(setProgress(int,int)) ); - connect( WebBrowser, SIGNAL(StatusTextChange(const <a href="qstring.html">TQString</a>&)), statusBar(), SLOT(message(const <a href="qstring.html">TQString</a>&)) ); + connect( WebBrowser, SIGNAL(StatusTextChange(const <a href="ntqstring.html">TQString</a>&)), statusBar(), SLOT(message(const <a href="ntqstring.html">TQString</a>&)) ); WebBrowser->dynamicCall( "GoHome()" ); } @@ -64,11 +64,11 @@ using the <a href="qaxbase.html#dynamicCall">TQAxBase::dynamicCall</a>() dynamic <p> <pre> void MainWindow::go() { actionStop->setEnabled( TRUE ); - WebBrowser->dynamicCall( "Navigate(const <a href="qstring.html">TQString</a>&)", addressEdit->text() ); + WebBrowser->dynamicCall( "Navigate(const <a href="ntqstring.html">TQString</a>&)", addressEdit->text() ); } </pre>The go() function calls the <tt>NavigateTo()</tt> function of Internet Explorer, passing the text of the address bar as the argument. -<p> <pre> void MainWindow::setTitle( const <a href="qstring.html">TQString</a> &title ) +<p> <pre> void MainWindow::setTitle( const <a href="ntqstring.html">TQString</a> &title ) { setCaption( "TQt WebBrowser - " + title ); } @@ -78,12 +78,12 @@ using the provided title string. <p> <pre> void MainWindow::setProgress( int a, int b ) { if ( a <= 0 || b <= 0 ) { - pb-><a href="qwidget.html#hide">hide</a>(); + pb-><a href="ntqwidget.html#hide">hide</a>(); return; } - pb-><a href="qwidget.html#show">show</a>(); - <a name="x2515"></a> pb-><a href="qprogressbar.html#setTotalSteps">setTotalSteps</a>( b ); - <a name="x2514"></a> pb-><a href="qprogressbar.html#setProgress">setProgress</a>( a ); + pb-><a href="ntqwidget.html#show">show</a>(); + <a name="x2515"></a> pb-><a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( b ); + <a name="x2514"></a> pb-><a href="ntqprogressbar.html#setProgress">setProgress</a>( a ); } void MainWindow::setCommandState( int cmd, bool on ) @@ -110,7 +110,7 @@ using the provided title string. </pre>The setProgress(), setCommandState(), navigateBegin() and navigateComplete() slots are connected to the respective signals of Internet Explorer and update the user interface. -<p> The rest of the implementation is not related to <a href="activeqt.html#ActiveTQt">ActiveTQt</a> and +<p> The rest of the implementation is not related to <a href="activentqt.html#ActiveTQt">ActiveTQt</a> and omitted for brevity. <p> To build the example you must first build the <a href="qaxcontainer.html">TQAxContainer</a> library. |