summaryrefslogtreecommitdiffstats
path: root/templates/annotated/systray.py
diff options
context:
space:
mode:
Diffstat (limited to 'templates/annotated/systray.py')
-rw-r--r--templates/annotated/systray.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/annotated/systray.py b/templates/annotated/systray.py
index 7f7dc93..dee4e90 100644
--- a/templates/annotated/systray.py
+++ b/templates/annotated/systray.py
@@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQWidget, SIGNAL
-from tdecore import KApplication, KIcon, KIconLoader
+from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KSystemTray
"""
@@ -38,7 +38,7 @@ Typically an application's "main window" will be a KMainWindow or
a subclass of KMainWindow (KMainWindow provides simple mechanisms
for constructing mens, toolbars, statusbars, etc). The problem with
using KMainWindow in a System Tray application is that when
-KMainWindow is closed, it also shuts down KApplication and the
+KMainWindow is closed, it also shuts down TDEApplication and the
program terminates.
One way around that (not necessarily the best way - see systray1.py)
@@ -56,11 +56,11 @@ class MainWin (TQWidget):
# when the user right clicks the icon in the system tray and
# selects "Quit" from the popup menu
def slotQuitSelected ():
- KApplication.kApplication ().quit ()
+ TDEApplication.kApplication ().quit ()
# The usual stuff
appName = "template"
-app = KApplication (sys.argv, appName)
+app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
# System tray apps need an icon