From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/qaxcontainer-example-webbrowser.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/qaxcontainer-example-webbrowser.html') 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.
    void MainWindow::init()
     {
-        pb = new TQProgressBar( statusBar() );
-        pb->setPercentageVisible( FALSE );
-        pb->hide();
+        pb = new TQProgressBar( statusBar() );
+        pb->setPercentageVisible( FALSE );
+        pb->hide();
         statusBar()->addWidget( pb, 0, TRUE );
 
         connect( WebBrowser, SIGNAL(ProgressChange(int,int)), this, SLOT(setProgress(int,int)) );
-        connect( WebBrowser, SIGNAL(StatusTextChange(const TQString&)), statusBar(), SLOT(message(const TQString&)) );
+        connect( WebBrowser, SIGNAL(StatusTextChange(const TQString&)), statusBar(), SLOT(message(const TQString&)) );
 
         WebBrowser->dynamicCall( "GoHome()" );
     }
@@ -64,11 +64,11 @@ using the TQAxBase::dynamicCall() dynamic
 

    void MainWindow::go()
     {
         actionStop->setEnabled( TRUE );
-        WebBrowser->dynamicCall( "Navigate(const TQString&)", addressEdit->text() );
+        WebBrowser->dynamicCall( "Navigate(const TQString&)", addressEdit->text() );
     }
 
The go() function calls the NavigateTo() function of Internet Explorer, passing the text of the address bar as the argument. -

    void MainWindow::setTitle( const TQString &title )
+

    void MainWindow::setTitle( const TQString &title )
     {
         setCaption( "TQt WebBrowser - " + title );
     }
@@ -78,12 +78,12 @@ using the provided title string.
 

    void MainWindow::setProgress( int a, int b )
     {
         if ( a <= 0 || b <= 0 ) {
-            pb->hide();
+            pb->hide();
             return;
         }
-        pb->show();
-        pb->setTotalSteps( b );
-        pb->setProgress( a );
+        pb->show();
+        pb->setTotalSteps( b );
+        pb->setProgress( a );
     }
 
     void MainWindow::setCommandState( int cmd, bool on )
@@ -110,7 +110,7 @@ using the provided title string.
 
The setProgress(), setCommandState(), navigateBegin() and navigateComplete() slots are connected to the respective signals of Internet Explorer and update the user interface. -

The rest of the implementation is not related to ActiveTQt and +

The rest of the implementation is not related to ActiveTQt and omitted for brevity.

To build the example you must first build the TQAxContainer library. -- cgit v1.2.1