From 4f9367a19011b727951632ba7c8d9539c72be75d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 10:48:05 -0600 Subject: Rename KLock and KTrader to avoid conflicts with KDE4 --- examples/mimetype.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/mimetype.py') diff --git a/examples/mimetype.py b/examples/mimetype.py index 90ea660..ca99534 100644 --- a/examples/mimetype.py +++ b/examples/mimetype.py @@ -43,7 +43,7 @@ from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, KURL from tdeui import KMainWindow, KTabCtl, KListBox -from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup +from kio import KMimeType, KService, KServiceGroup, KServiceType, TDETrader, KServiceTypeProfile, KServiceGroup class MainWin (KMainWindow): def __init__ (self, *args): @@ -86,9 +86,9 @@ class OfferListTab (TQWidget): TQListViewItem (lv, "Preferred", "--------", "", "") TQListViewItem (lv, "", "", "", "") - trader = KTrader.self () + trader = TDETrader.self () slist = trader.query ("image/jpeg", "Type == 'Application'") - print "KTrader returned:", slist + print "TDETrader returned:", slist for s in slist: lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ()) -- cgit v1.2.3