diff options
Diffstat (limited to 'examples/webbrowser')
-rw-r--r-- | examples/webbrowser/mainwindow.py | 36 | ||||
-rw-r--r-- | examples/webbrowser/webbrowser.py | 4 |
2 files changed, 20 insertions, 20 deletions
diff --git a/examples/webbrowser/mainwindow.py b/examples/webbrowser/mainwindow.py index 2d4e740..4078aca 100644 --- a/examples/webbrowser/mainwindow.py +++ b/examples/webbrowser/mainwindow.py @@ -1002,24 +1002,24 @@ class MainWindow(TQMainWindow): self.resize(TQSize(812,605).expandedTo(self.minimumSizeHint())) self.clearWState(TQt.WState_Polished) - self.connect(self.actionHome,SIGNAL("activated()"),self.WebBrowser,SLOT("GoHome()")) - self.connect(self.actionRefresh,SIGNAL("activated()"),self.WebBrowser,SLOT("Refresh()")) - self.connect(self.actionStop,SIGNAL("activated()"),self.WebBrowser,SLOT("Stop()")) - self.connect(self.actionForward,SIGNAL("activated()"),self.WebBrowser,SLOT("GoForward()")) - self.connect(self.actionBack,SIGNAL("activated()"),self.WebBrowser,SLOT("GoBack()")) - self.connect(self.actionGo,SIGNAL("activated()"),self.go) - self.connect(self.actionFileClose,SIGNAL("activated()"),self.close) - self.connect(self.actionSearch,SIGNAL("activated()"),self.WebBrowser,SLOT("GoSearch()")) - self.connect(self.addressEdit,SIGNAL("returnPressed()"),self.go) - self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const TQString&)"),self.addressEdit.setText) - self.connect(self.WebBrowser,SIGNAL("TitleChange(const TQString&)"),self.setTitle) - self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const TQString&)"),self.navigateComplete) - self.connect(self.WebBrowser,SIGNAL("CommandStateChange(int,bool)"),self.setCommandState) - self.connect(self.WebBrowser,SIGNAL("BeforeNavigate(const TQString&,int,const TQString&,const TQVariant&,const TQString&,bool&)"),self.navigateBegin) - self.connect(self.actionStop,SIGNAL("activated()"),self.navigateComplete) - self.connect(self.actionNewWindow,SIGNAL("activated()"),self.newWindow) - self.connect(self.actionAbout,SIGNAL("activated()"),self.aboutSlot) - self.connect(self.actionAboutTQt,SIGNAL("activated()"),self.aboutTQtSlot) + self.connect(self.actionHome,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("GoHome()")) + self.connect(self.actionRefresh,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("Refresh()")) + self.connect(self.actionStop,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("Stop()")) + self.connect(self.actionForward,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("GoForward()")) + self.connect(self.actionBack,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("GoBack()")) + self.connect(self.actionGo,TQ_SIGNAL("activated()"),self.go) + self.connect(self.actionFileClose,TQ_SIGNAL("activated()"),self.close) + self.connect(self.actionSearch,TQ_SIGNAL("activated()"),self.WebBrowser,TQ_SLOT("GoSearch()")) + self.connect(self.addressEdit,TQ_SIGNAL("returnPressed()"),self.go) + self.connect(self.WebBrowser,TQ_SIGNAL("NavigateComplete(const TQString&)"),self.addressEdit.setText) + self.connect(self.WebBrowser,TQ_SIGNAL("TitleChange(const TQString&)"),self.setTitle) + self.connect(self.WebBrowser,TQ_SIGNAL("NavigateComplete(const TQString&)"),self.navigateComplete) + self.connect(self.WebBrowser,TQ_SIGNAL("CommandStateChange(int,bool)"),self.setCommandState) + self.connect(self.WebBrowser,TQ_SIGNAL("BeforeNavigate(const TQString&,int,const TQString&,const TQVariant&,const TQString&,bool&)"),self.navigateBegin) + self.connect(self.actionStop,TQ_SIGNAL("activated()"),self.navigateComplete) + self.connect(self.actionNewWindow,TQ_SIGNAL("activated()"),self.newWindow) + self.connect(self.actionAbout,TQ_SIGNAL("activated()"),self.aboutSlot) + self.connect(self.actionAboutTQt,TQ_SIGNAL("activated()"),self.aboutTQtSlot) self.init() diff --git a/examples/webbrowser/webbrowser.py b/examples/webbrowser/webbrowser.py index 0ae8702..95b09ab 100644 --- a/examples/webbrowser/webbrowser.py +++ b/examples/webbrowser/webbrowser.py @@ -20,8 +20,8 @@ class MainWindowImpl(mainwindow.MainWindow): self.pb.hide() self.statusBar().addWidget(self.pb, 0, True) - self.connect(self.WebBrowser, tqt.SIGNAL("ProgressChange(int,int)"), self.setProgress) - self.connect(self.WebBrowser, tqt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), tqt.SLOT("message(const TQString&)")) + self.connect(self.WebBrowser, tqt.TQ_SIGNAL("ProgressChange(int,int)"), self.setProgress) + self.connect(self.WebBrowser, tqt.TQ_SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), tqt.TQ_SLOT("message(const TQString&)")) self.WebBrowser.dynamicCall("GoHome()"); |