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
else
{
KTrader::OfferList offers = KTrader::self()->query(mime, "Type == 'Application'");
TDETrader::OfferList offers = TDETrader::self()->query(mime, "Type == 'Application'");
KService::Ptr ptr = offers.first();
KURL::List lst;
lst.append(cURL);

@ -254,7 +254,7 @@ void KileProjectView::popup(KListView *, TQListViewItem * item, const TQPoint &
if ( ! isKilePrFile )
{
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)
apps->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+1);

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

@ -771,7 +771,7 @@ namespace KileWidget
KURL url;
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)
{
m_popup->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+SectioningGraphicsOfferlist);

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

@ -413,7 +413,7 @@ void TexDocDialog::showFile(const TQString &filename)
KURL url;
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() )
{
KMessageBox::error(this,i18n("No TDE service found for this file."));

Loading…
Cancel
Save