summaryrefslogtreecommitdiffstats
path: root/examples3/webbrowser/webbrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/webbrowser/webbrowser.py')
-rw-r--r--examples3/webbrowser/webbrowser.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples3/webbrowser/webbrowser.py b/examples3/webbrowser/webbrowser.py
index bd1462e..17155b4 100644
--- a/examples3/webbrowser/webbrowser.py
+++ b/examples3/webbrowser/webbrowser.py
@@ -1,7 +1,7 @@
# Copyright (C) 2001-2002 Trolltech AS. All rights reserved.
# Copyright (C) 2004 Riverbank Computing Ltd. All rights reserved.
#
-# This file is part of an example program for the ActiveQt integration.
+# This file is part of an example program for the ActiveTQt integration.
# This example program may be used, distributed and modified without
# limitation.
@@ -15,13 +15,13 @@ import mainwindow
class MainWindowImpl(mainwindow.MainWindow):
def init(self):
- self.pb = qt.QProgressBar(self.statusBar())
+ self.pb = qt.TQProgressBar(self.statusBar())
self.pb.setPercentageVisible(False)
self.pb.hide()
self.statusBar().addWidget(self.pb, 0, True)
self.connect(self.WebBrowser, qt.SIGNAL("ProgressChange(int,int)"), self.setProgress)
- self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const QString&)"), self.statusBar(), qt.SLOT("message(const QString&)"))
+ self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), qt.SLOT("message(const TQString&)"))
self.WebBrowser.dynamicCall("GoHome()");
@@ -29,10 +29,10 @@ class MainWindowImpl(mainwindow.MainWindow):
def go(self):
self.actionStop.setEnabled(True)
- self.WebBrowser.dynamicCall("Navigate(const QString&)", qt.QVariant(self.addressEdit.text()))
+ self.WebBrowser.dynamicCall("Navigate(const TQString&)", qt.TQVariant(self.addressEdit.text()))
def setTitle(self, title):
- self.setCaption("Qt WebBrowser - " + title.latin1())
+ self.setCaption("TQt WebBrowser - " + title.latin1())
def setProgress(self, a, b):
if a <= 0 or b <= 0:
@@ -69,17 +69,17 @@ class MainWindowImpl(mainwindow.MainWindow):
self.subwindows += window
def aboutSlot(self):
- qt.QMessageBox.about(self, self.tr("About WebBrowser"), self.tr(
-"""This Example has been created using the ActiveQt integration into Qt Designer.
-It demonstrates the use of QAxWidget to embed the Internet Explorer ActiveX
-control into a Qt application."""))
+ qt.TQMessageBox.about(self, self.tr("About WebBrowser"), self.tr(
+"""This Example has been created using the ActiveTQt integration into TQt Designer.
+It demonstrates the use of TQAxWidget to embed the Internet Explorer ActiveX
+control into a TQt application."""))
- def aboutQtSlot(self):
- qt.QMessageBox.aboutQt(self, self.tr("About Qt"))
+ def aboutTQtSlot(self):
+ qt.TQMessageBox.aboutTQt(self, self.tr("About TQt"))
def main(args):
- a = qt.QApplication(args)
+ a = qt.TQApplication(args)
w = MainWindowImpl()
a.setMainWidget(w)
w.show()