From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdecore/ksycocafactory.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdecore/ksycocafactory.cpp') diff --git a/kdecore/ksycocafactory.cpp b/kdecore/ksycocafactory.cpp index 3542fa0cb..e5816dc23 100644 --- a/kdecore/ksycocafactory.cpp +++ b/kdecore/ksycocafactory.cpp @@ -21,12 +21,12 @@ #include "ksycocafactory.h" #include "ksycocaentry.h" #include "ksycocadict.h" -#include -#include +#include +#include #include -template class QDict; -template class QDict >; +template class TQDict; +template class TQDict >; KSycocaFactory::KSycocaFactory(KSycocaFactoryId factory_id) : m_resourceList(0), m_entryDict(0), m_sycocaDict(0) @@ -75,7 +75,7 @@ KSycocaFactory::~KSycocaFactory() } void -KSycocaFactory::saveHeader(QDataStream &str) +KSycocaFactory::saveHeader(TQDataStream &str) { // Write header str.device()->at(mOffset); @@ -85,7 +85,7 @@ KSycocaFactory::saveHeader(QDataStream &str) } void -KSycocaFactory::save(QDataStream &str) +KSycocaFactory::save(TQDataStream &str) { if (!m_entryDict) return; // Error! Function should only be called when // building database @@ -101,7 +101,7 @@ KSycocaFactory::save(QDataStream &str) // Write all entries. int entryCount = 0; - for(QDictIterator it ( *m_entryDict ); + for(TQDictIterator it ( *m_entryDict ); it.current(); ++it) { @@ -115,7 +115,7 @@ KSycocaFactory::save(QDataStream &str) // Write indices... // Linear index str << (Q_INT32) entryCount; - for(QDictIterator it ( *m_entryDict ); + for(TQDictIterator it ( *m_entryDict ); it.current(); ++it) { @@ -144,7 +144,7 @@ KSycocaFactory::addEntry(KSycocaEntry *newEntry, const char *) if (!m_sycocaDict) return; // Error! - QString name = newEntry->name(); + TQString name = newEntry->name(); m_entryDict->insert( name, new KSycocaEntry::Ptr(newEntry) ); m_sycocaDict->add( name, newEntry ); } @@ -157,7 +157,7 @@ KSycocaFactory::removeEntry(KSycocaEntry *newEntry) if (!m_sycocaDict) return; // Error! - QString name = newEntry->name(); + TQString name = newEntry->name(); m_entryDict->remove( name ); m_sycocaDict->remove( name ); } -- cgit v1.2.1