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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/annotated/systray.py b/templates/annotated/systray.py
index 56944a8..1c3745c 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 TDEApplication, KIcon, KIconLoader
+from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import KSystemTray
"""
@@ -64,13 +64,13 @@ app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
# System tray apps need an icon
-icons = KIconLoader ()
+icons = TDEIconLoader ()
# The KSystemTray widget shows or hides it's parent widget
# when clicked, so parent needs to be the main window
systray = KSystemTray (mainWindow)
-systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop))
+systray.setPixmap (icons.loadIcon("stop", TDEIcon.Desktop))
systray.connect (systray, SIGNAL ("quitSelected ()"), slotQuitSelected)
systray.show ()