Rename KLock and KTrader to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 9d57d1051d
commit 7143a99b4f

@ -22,7 +22,7 @@
#include <krun.h> #include <krun.h>
#include <klocale.h> #include <klocale.h>
OpenContextmenu::OpenContextmenu(const KURL&aPath,const KTrader::OfferList&aList,TQWidget* parent, const char* name) OpenContextmenu::OpenContextmenu(const KURL&aPath,const TDETrader::OfferList&aList,TQWidget* parent, const char* name)
: TQPopupMenu(parent, name),m_Path(aPath),m_List(aList) : TQPopupMenu(parent, name),m_Path(aPath),m_List(aList)
{ {
setup(); setup();
@ -35,7 +35,7 @@ OpenContextmenu::~OpenContextmenu()
void OpenContextmenu::setup() void OpenContextmenu::setup()
{ {
m_mapPopup.clear(); m_mapPopup.clear();
KTrader::OfferList::ConstIterator it = m_List.begin(); TDETrader::OfferList::ConstIterator it = m_List.begin();
int id = 1; int id = 1;
KAction*act; KAction*act;
for( ; it != m_List.end(); ++it ) { for( ; it != m_List.end(); ++it ) {

@ -34,11 +34,11 @@ class OpenContextmenu : public TQPopupMenu
Q_OBJECT Q_OBJECT
public: public:
OpenContextmenu(const KURL&,const KTrader::OfferList&,TQWidget* parent, const char* name); OpenContextmenu(const KURL&,const TDETrader::OfferList&,TQWidget* parent, const char* name);
virtual ~OpenContextmenu(); virtual ~OpenContextmenu();
protected: protected:
KURL m_Path; KURL m_Path;
KTrader::OfferList m_List; TDETrader::OfferList m_List;
TQMap<int,KService::Ptr> m_mapPopup; TQMap<int,KService::Ptr> m_mapPopup;
void setup(); void setup();

@ -577,11 +577,11 @@ void SvnActions::slotMakeCat(const svn::Revision&start, const TQString&what, con
EMIT_FINISHED; EMIT_FINISHED;
KMimeType::Ptr mptr; KMimeType::Ptr mptr;
mptr = KMimeType::findByFileContent(content.name()); mptr = KMimeType::findByFileContent(content.name());
KTrader::OfferList offers = KTrader::self()->query(mptr->name(), "Type == 'Application' or (exist Exec)"); TDETrader::OfferList offers = TDETrader::self()->query(mptr->name(), "Type == 'Application' or (exist Exec)");
if (offers.count()==0 || offers.first()->exec().isEmpty()) { if (offers.count()==0 || offers.first()->exec().isEmpty()) {
offers = KTrader::self()->query(mptr->name(), "Type == 'Application'"); offers = TDETrader::self()->query(mptr->name(), "Type == 'Application'");
} }
KTrader::OfferList::ConstIterator it = offers.begin(); TDETrader::OfferList::ConstIterator it = offers.begin();
for( ; it != offers.end(); ++it ) { for( ; it != offers.end(); ++it ) {
if ((*it)->noDisplay()) if ((*it)->noDisplay())
continue; continue;

@ -1091,7 +1091,7 @@ void tdesvnfilelist::slotItemDoubleClicked(TQListViewItem*item)
if ( feditor.compare("default") == 0 ) { if ( feditor.compare("default") == 0 ) {
KURL::List lst; KURL::List lst;
lst.append(fki->kdeName(rev)); lst.append(fki->kdeName(rev));
KTrader::OfferList li = offersList(fki,true); TDETrader::OfferList li = offersList(fki,true);
if (li.count()==0||li.first()->exec().isEmpty()) { if (li.count()==0||li.first()->exec().isEmpty()) {
li = offersList(fki); li = offersList(fki);
} }
@ -1424,9 +1424,9 @@ bool tdesvnfilelist::refreshRecursive(FileListViewItem*_parent,bool down)
return dispchanged; return dispchanged;
} }
KTrader::OfferList tdesvnfilelist::offersList(SvnItem*item,bool execOnly) TDETrader::OfferList tdesvnfilelist::offersList(SvnItem*item,bool execOnly)
{ {
KTrader::OfferList offers; TDETrader::OfferList offers;
if (!item) { if (!item) {
return offers; return offers;
} }
@ -1436,7 +1436,7 @@ KTrader::OfferList tdesvnfilelist::offersList(SvnItem*item,bool execOnly)
} else { } else {
constraint = "Type == 'Application'"; constraint = "Type == 'Application'";
} }
offers = KTrader::self()->query(item->mimeType()->name(), constraint); offers = TDETrader::self()->query(item->mimeType()->name(), constraint);
return offers; return offers;
} }
@ -1489,7 +1489,7 @@ void tdesvnfilelist::slotContextMenuRequested(TQListViewItem */* _item */, const
return; return;
} }
KTrader::OfferList offers; TDETrader::OfferList offers;
OpenContextmenu*me=0; OpenContextmenu*me=0;
KAction*temp = 0; KAction*temp = 0;

@ -131,7 +131,7 @@ protected:
virtual void leaveEvent(TQEvent*e); virtual void leaveEvent(TQEvent*e);
virtual void rescanIconsRec(FileListViewItem*_parent=0,bool checkNewer=false,bool no_update=false); virtual void rescanIconsRec(FileListViewItem*_parent=0,bool checkNewer=false,bool no_update=false);
KTrader::OfferList offersList(SvnItem*item,bool execOnly=false); TDETrader::OfferList offersList(SvnItem*item,bool execOnly=false);
private: private:
KdesvnFileListPrivate*m_pList; KdesvnFileListPrivate*m_pList;

Loading…
Cancel
Save