diff options
Diffstat (limited to 'app_templates/kdeapp/src/kdeappview.py')
-rw-r--r-- | app_templates/kdeapp/src/kdeappview.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app_templates/kdeapp/src/kdeappview.py b/app_templates/kdeapp/src/kdeappview.py index 92ec6df..af2537a 100644 --- a/app_templates/kdeapp/src/kdeappview.py +++ b/app_templates/kdeapp/src/kdeappview.py @@ -15,7 +15,7 @@ # # ########################################################################### -from PyTQt.qt import * +from PyTQt.tqt import * from tdecore import * from tdeui import * from tdeio import * @@ -23,13 +23,13 @@ from tdehtml import * from tdeparts import * #from kdeappiface import * -class KdeAppView(QWidget): +class KdeAppView(TQWidget): def __init__(self,parent): - QWidget.__init__(self,parent) + TQWidget.__init__(self,parent) #self._dcopclient= KdeAppIface(self,"KdeAppIface") # setup our layout manager to automatically add our widgets - top_layout = QHBoxLayout(self) + top_layout = TQHBoxLayout(self) top_layout.setAutoAdd(True) if True: @@ -58,7 +58,7 @@ class KdeAppView(QWidget): # we now know that our offer can handle HTML and is a part. # since it is a part, it must also have a library... let's try to # load that now - self._html = createReadOnlyPart(ptr.library(),self,ptr.name(),"KParts::ReadOnlyPart",QStringList()) + self._html = createReadOnlyPart(ptr.library(),self,ptr.name(),"KParts::ReadOnlyPart", TQStringList()) if self._html is not None: break @@ -68,8 +68,8 @@ class KdeAppView(QWidget): KMessageBox.error(self, i18n("Could not find a suitable HTML component")) return - QObject.connect(self._html, SIGNAL("setWindowCaption(const QString&)"), self.slotSetTitle) - QObject.connect(self._html, SIGNAL("setStatusBarText(const QString&)"), self.slotOnURL) + TQObject.connect(self._html, SIGNAL("setWindowCaption(const TQString&)"), self.slotSetTitle) + TQObject.connect(self._html, SIGNAL("setStatusBarText(const TQString&)"), self.slotOnURL) def print_(self,p,height,width): pass @@ -80,7 +80,7 @@ class KdeAppView(QWidget): return self._html.url().url() def openURL(self,url): - if isinstance(url,QString): + if isinstance(url,TQString): url = KURL(url) self._html.openURL(url) |