summaryrefslogtreecommitdiffstats
path: root/examples/xmlmenudemo.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:12:48 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:12:48 -0600
commitf49521ca3d0cbf2197b353a7c35f924e7b5b89ff (patch)
tree58fdba2caa721a57abc5ad2a293c978f57629778 /examples/xmlmenudemo.py
parent77ad361b74e6bda59916cc01c13c0b44306d730e (diff)
downloadpytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.tar.gz
pytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'examples/xmlmenudemo.py')
-rw-r--r--examples/xmlmenudemo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/xmlmenudemo.py b/examples/xmlmenudemo.py
index e50f934..f4cfdb1 100644
--- a/examples/xmlmenudemo.py
+++ b/examples/xmlmenudemo.py
@@ -43,7 +43,7 @@ import sys, os
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
-from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, KIcon, KIconLoader, TDEShortcut, TDEGlobal
+from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, i18n, TDEIcon, TDEIconLoader, TDEShortcut, TDEGlobal
from tdeui import TDEMainWindow, KMessageBox, KStdAction, TDEAction, TDEToggleAction, TDEFontSizeAction, TDEFontAction, TDERadioAction,\
TDEActionSeparator, TDEActionMenu, KWindowListMenu, KXMLGUIClient, TDEActionCollection
@@ -133,8 +133,8 @@ class MainWin (TDEMainWindow):
self.fontSizeAction.setComboWidth (75)
# Need to assign an icon to actionMenu below
- icons = KIconLoader ()
- iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar))
+ icons = TDEIconLoader ()
+ iconSet = TQIconSet (icons.loadIcon ("viewmag", TDEIcon.Toolbar))
# Nested menus using TDEActions (also nested on toolbar)
self.actionMenu = TDEActionMenu ("Action Menu", acts, "actionMenu")