summaryrefslogtreecommitdiffstats
path: root/src/profileengine/lib/profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profileengine/lib/profile.cpp')
-rw-r--r--src/profileengine/lib/profile.cpp26
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());
}