diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/profileengine/lib/profile.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
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
Diffstat (limited to 'src/profileengine/lib/profile.cpp')
-rw-r--r-- | src/profileengine/lib/profile.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <kconfig.h> #include <kio/netaccess.h> -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<Profile*>::iterator it = m_children.begin(); it != m_children.end(); ++it) + for (TQValueList<Profile*>::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()); } |