From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/profileengine/lib/profile.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/profileengine/lib/profile.cpp') diff --git a/src/profileengine/lib/profile.cpp b/src/profileengine/lib/profile.cpp index f07c6376..39d247bf 100644 --- a/src/profileengine/lib/profile.cpp +++ b/src/profileengine/lib/profile.cpp @@ -26,8 +26,8 @@ #include #include -Profile::Profile(Profile *parent, const TQString &name) - :m_parent(parent), m_name(name) +Profile::Profile(Profile *tqparent, const TQString &name) + :m_parent(tqparent), m_name(name) { if (m_parent) m_parent->addChildProfile(this); @@ -49,8 +49,8 @@ Profile::Profile(Profile *parent, const TQString &name) m_explicitDisable = config.readListEntry("List"); } -Profile::Profile(Profile *parent, const TQString &name, const TQString &genericName, const TQString &description) - :m_parent(parent), m_name(name), m_genericName(genericName), m_description(description) +Profile::Profile(Profile *tqparent, const TQString &name, const TQString &genericName, const TQString &description) + :m_parent(tqparent), m_name(name), m_genericName(genericName), m_description(description) { if (m_parent) m_parent->addChildProfile(this); @@ -59,18 +59,18 @@ Profile::Profile(Profile *parent, const TQString &name, const TQString &genericN Profile::~Profile() { - for (TQValueList::iterator it = m_children.begin(); it != m_children.end(); ++it) + for (TQValueList::iterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) delete *it; } void Profile::addChildProfile(Profile *profile) { - m_children.append(profile); + m_tqchildren.append(profile); } void Profile::removeChildProfile(Profile *profile) { - m_children.remove(profile); + m_tqchildren.remove(profile); } TQString Profile::dirName() const @@ -104,10 +104,10 @@ void Profile::save() Profile::EntryList Profile::list(List type) { - EntryList parentList; + EntryList tqparentList; if (m_parent) - parentList = m_parent->list(type); - EntryList list = parentList; + tqparentList = m_parent->list(type); + EntryList list = tqparentList; for (EntryList::iterator it = list.begin(); it != list.end(); ++it) (*it).derived = true; TQStringList &personalList = listByType(type); @@ -119,7 +119,7 @@ Profile::EntryList Profile::list(List type) void Profile::addEntry(List type, const TQString &value) { TQStringList &list = listByType(type); - if (!list.contains(value)) + if (!list.tqcontains(value)) list.append(value); } @@ -187,10 +187,10 @@ KURL::List Profile::resources(const TQString &nameFilter) dir = dir + "kdevelop/profiles" + dirName(); TQDir d(dir); - const QFileInfoList *infoList = d.entryInfoList(nameFilter, TQDir::Files); + const TQFileInfoList *infoList = d.entryInfoList(nameFilter, TQDir::Files); if (!infoList) continue; - for (QFileInfoList::const_iterator infoIt = infoList->constBegin(); + for (TQFileInfoList::const_iterator infoIt = infoList->constBegin(); infoIt != infoList->constEnd(); ++ infoIt) resources.append((*infoIt)->absFilePath()); } -- cgit v1.2.3