From f49521ca3d0cbf2197b353a7c35f924e7b5b89ff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:12:48 -0600 Subject: Rename KIcon to enhance compatibility with KDE4 --- examples/xmlmenudemo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/xmlmenudemo.py') 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") -- cgit v1.2.1