diff options
author | Slávek Banko <[email protected]> | 2023-01-16 17:11:02 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2023-01-23 02:16:16 +0100 |
commit | e55e706f31de58a8286d0b6e53b723d9d199d5c6 (patch) | |
tree | d92640d57599b3e8b8332c13830501a701a65d89 /app_templates/kdeapp/src/kdeappview.py | |
parent | 2d380395d26b5897ffbf92dc62bd0f9ed09e0661 (diff) | |
download | pytdeextensions-e55e706f31de58a8286d0b6e53b723d9d199d5c6.tar.gz pytdeextensions-e55e706f31de58a8286d0b6e53b723d9d199d5c6.zip |
Update after renaming qt => tqt in PyTQt module.
Signed-off-by: Slávek Banko <[email protected]>
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) |