summaryrefslogtreecommitdiffstats
path: root/kate/app/katemainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:49:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:49:49 -0600
commitdc5f267664506a312203c26bfe9001a448b0bb0f (patch)
treea78c7f15e87303d22b89619db42fc56ad8f4a046 /kate/app/katemainwindow.cpp
parent98f4a055baf6eb7ea5c3d69d6a3f2162b491e253 (diff)
downloadtdebase-dc5f267664506a312203c26bfe9001a448b0bb0f.tar.gz
tdebase-dc5f267664506a312203c26bfe9001a448b0bb0f.zip
Rename KLock and KTrader to avoid conflicts with KDE4
Diffstat (limited to 'kate/app/katemainwindow.cpp')
-rw-r--r--kate/app/katemainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
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: "<<m_viewManager->activeView()->getDoc()->url().prettyURL()<<"mime type: "<<mime->name()<<endl;
// some checking goes here...
- KTrader::OfferList offers = KTrader::self()->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();