From dc5f267664506a312203c26bfe9001a448b0bb0f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 10:49:49 -0600 Subject: Rename KLock and KTrader to avoid conflicts with KDE4 --- kate/app/katemainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kate/app/katemainwindow.cpp') diff --git a/kate/app/katemainwindow.cpp b/kate/app/katemainwindow.cpp index aa8aaedb9..5ef3c78e8 100644 --- a/kate/app/katemainwindow.cpp +++ b/kate/app/katemainwindow.cpp @@ -602,9 +602,9 @@ void KateMainWindow::mSlotFixOpenWithMenu() KMimeType::Ptr mime = KMimeType::findByURL( m_viewManager->activeView()->getDoc()->url() ); //kdDebug(13001)<<"13000"<<"url: "<activeView()->getDoc()->url().prettyURL()<<"mime type: "<name()<query(mime->name(), "Type == 'Application'"); + TDETrader::OfferList offers = TDETrader::self()->query(mime->name(), "Type == 'Application'"); // for each one, insert a menu item... - for(KTrader::OfferList::Iterator it = offers.begin(); it != offers.end(); ++it) { + for(TDETrader::OfferList::Iterator it = offers.begin(); it != offers.end(); ++it) { if ((*it)->name() == "Kate") continue; documentOpenWith->popupMenu()->insertItem( SmallIcon( (*it)->icon() ), (*it)->name() ); } @@ -629,7 +629,7 @@ void KateMainWindow::slotOpenWithMenuAction(int idx) TQString qry = TQString("((Type == 'Application') and (Name == '%1'))").arg( appname.latin1() ); KMimeType::Ptr mime = KMimeType::findByURL( m_viewManager->activeView()->getDoc()->url() ); - KTrader::OfferList offers = KTrader::self()->query(mime->name(), qry); + TDETrader::OfferList offers = TDETrader::self()->query(mime->name(), qry); if (!offers.isEmpty()) { KService::Ptr app = offers.first(); -- cgit v1.2.1