Rename KLock and KTrader to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent dad8adc7ea
commit bd4e86464b

@ -59,7 +59,7 @@ void DocumentationViewer::urlSelected(const TQString &url, int button, int state
//TDEHTML can't handle it, look for an appropriate application //TDEHTML can't handle it, look for an appropriate application
else else
{ {
KTrader::OfferList offers = KTrader::self()->query(mime, "Type == 'Application'"); TDETrader::OfferList offers = TDETrader::self()->query(mime, "Type == 'Application'");
KService::Ptr ptr = offers.first(); KService::Ptr ptr = offers.first();
KURL::List lst; KURL::List lst;
lst.append(cURL); lst.append(cURL);

@ -254,7 +254,7 @@ void KileProjectView::popup(KListView *, TQListViewItem * item, const TQPoint &
if ( ! isKilePrFile ) if ( ! isKilePrFile )
{ {
KPopupMenu *apps = new KPopupMenu( m_popup); KPopupMenu *apps = new KPopupMenu( m_popup);
m_offerList = KTrader::self()->query(KMimeType::findByURL(itm->url())->name(), "Type == 'Application'"); m_offerList = TDETrader::self()->query(KMimeType::findByURL(itm->url())->name(), "Type == 'Application'");
for (uint i=0; i < m_offerList.count(); ++i) for (uint i=0; i < m_offerList.count(); ++i)
apps->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+1); apps->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+1);

@ -159,7 +159,7 @@ private:
uint m_nProjects; uint m_nProjects;
KToggleAction *m_toggle; KToggleAction *m_toggle;
KTrader::OfferList m_offerList; TDETrader::OfferList m_offerList;
}; };
#endif #endif

@ -771,7 +771,7 @@ namespace KileWidget
KURL url; KURL url;
url.setPath(m_popupInfo); url.setPath(m_popupInfo);
m_offerList = KTrader::self()->query(KMimeType::findByURL(url)->name(), "Type == 'Application'"); m_offerList = TDETrader::self()->query(KMimeType::findByURL(url)->name(), "Type == 'Application'");
for (uint i=0; i < m_offerList.count(); ++i) for (uint i=0; i < m_offerList.count(); ++i)
{ {
m_popup->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+SectioningGraphicsOfferlist); m_popup->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+SectioningGraphicsOfferlist);

@ -239,7 +239,7 @@ namespace KileWidget
KileListViewItem *m_popupItem; KileListViewItem *m_popupItem;
TQString m_popupInfo; TQString m_popupInfo;
KTrader::OfferList m_offerList; TDETrader::OfferList m_offerList;
}; };
} }

@ -413,7 +413,7 @@ void TexDocDialog::showFile(const TQString &filename)
KURL url; KURL url;
url.setPath(filename); url.setPath(filename);
KTrader::OfferList offers = KTrader::self()->query( getMimeType(filename),"Type == 'Application'"); TDETrader::OfferList offers = TDETrader::self()->query( getMimeType(filename),"Type == 'Application'");
if ( offers.isEmpty() ) if ( offers.isEmpty() )
{ {
KMessageBox::error(this,i18n("No TDE service found for this file.")); KMessageBox::error(this,i18n("No TDE service found for this file."));

Loading…
Cancel
Save