summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:32 -0600
commitbceaed59bfdda04b7fac65b47024600db693e87b (patch)
tree0410a2c5644ed6ae3d05b1148cb3eba725ca5178
parenta92c024e16f13fbec45062106c24dfcb40028352 (diff)
downloadpytdeextensions-bceaed59bfdda04b7fac65b47024600db693e87b.tar.gz
pytdeextensions-bceaed59bfdda04b7fac65b47024600db693e87b.zip
Rename a number of classes to enhance compatibility with KDE4
-rwxr-xr-xapp_templates/kdeapp/src/kdeapp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/app_templates/kdeapp/src/kdeapp.py b/app_templates/kdeapp/src/kdeapp.py
index 2aa4899..64ae835 100755
--- a/app_templates/kdeapp/src/kdeapp.py
+++ b/app_templates/kdeapp/src/kdeapp.py
@@ -25,9 +25,9 @@ from kdeappview import *
description = "A KDE Application"
version = "0.1";
-class KdeApp(KMainWindow):
+class KdeApp(TDEMainWindow):
def __init__(self):
- KMainWindow.__init__(self,None,"KdeApp")
+ TDEMainWindow.__init__(self,None,"KdeApp")
self._view = KdeAppView(self)
self._printer = None
@@ -35,7 +35,7 @@ class KdeApp(KMainWindow):
# accept dnd
self.setAcceptDrops(True)
- # tell the KMainWindow that this is indeed the main widget
+ # tell the TDEMainWindow that this is indeed the main widget
self.setCentralWidget(self._view)
# then, setup our actions
@@ -94,7 +94,7 @@ class KdeApp(KMainWindow):
# this doesn't do anything useful. it's just here to illustrate
# how to insert a custom menu and menu item
- custom = KAction(i18n("Cus&tom Menuitem"), KShortcut(),
+ custom = TDEAction(i18n("Cus&tom Menuitem"), TDEShortcut(),
self.optionsPreferences,
self.actionCollection(), "custom_action")
self.createGUI()
@@ -258,7 +258,7 @@ def main():
# see if we are starting with session management
if kapp.isRestored():
n = 1
- while KMainWindow.canBeRestored(n):
+ while TDEMainWindow.canBeRestored(n):
KdeApp().restore(n)
n += 1
else: