summaryrefslogtreecommitdiffstats
path: root/src/profileengine
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /src/profileengine
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/profileengine')
-rw-r--r--src/profileengine/editor/profileeditor.cpp14
-rw-r--r--src/profileengine/lib/profile.cpp2
-rw-r--r--src/profileengine/lib/profileengine.cpp6
3 files changed, 11 insertions, 11 deletions
diff --git a/src/profileengine/editor/profileeditor.cpp b/src/profileengine/editor/profileeditor.cpp
index 0e3fb5d4..ca6b6633 100644
--- a/src/profileengine/editor/profileeditor.cpp
+++ b/src/profileengine/editor/profileeditor.cpp
@@ -122,7 +122,7 @@ void ProfileEditor::refreshPropertyCombo()
TQStringList currProps = (*it)->property("X-KDevelop-Properties").toStringList();
for (TQStringList::const_iterator p = currProps.constBegin();
p != currProps.constEnd(); ++p)
- if (!props.tqcontains(*p))
+ if (!props.contains(*p))
props.append(*p);
}
props.sort();
@@ -271,8 +271,8 @@ void ProfileEditor::removeProfile()
void ProfileEditor::addProperty()
{
if ( (!propertyCombo->currentText().isEmpty()) &&
- (ownPropertiesBox->tqfindItem(propertyCombo->currentText()) == 0) &&
- (derivedPropertiesBox->tqfindItem(propertyCombo->currentText()) == 0) )
+ (ownPropertiesBox->findItem(propertyCombo->currentText()) == 0) &&
+ (derivedPropertiesBox->findItem(propertyCombo->currentText()) == 0) )
{
ownPropertiesBox->insertItem(propertyCombo->currentText());
@@ -322,9 +322,9 @@ void ProfileEditor::addEnabled()
text = allList->currentItem()->text(0);
}
- if (enabledList->tqfindItem(text, 0) != 0)
+ if (enabledList->findItem(text, 0) != 0)
return;
- if (disabledList->tqfindItem(text, 0) != 0)
+ if (disabledList->findItem(text, 0) != 0)
{
KMessageBox::error(this, i18n("This plugin is already contained in the list of disabled plugins."),
i18n("Enable Plugin"));
@@ -368,9 +368,9 @@ void ProfileEditor::addDisabled()
text = allList->currentItem()->text(0);
}
- if (disabledList->tqfindItem(text, 0) != 0)
+ if (disabledList->findItem(text, 0) != 0)
return;
- if (enabledList->tqfindItem(text, 0) != 0)
+ if (enabledList->findItem(text, 0) != 0)
{
KMessageBox::error(this, i18n("This plugin is already contained in the list of enabled plugins."),
i18n("Disable Plugin"));
diff --git a/src/profileengine/lib/profile.cpp b/src/profileengine/lib/profile.cpp
index 5c94d566..a5ad5803 100644
--- a/src/profileengine/lib/profile.cpp
+++ b/src/profileengine/lib/profile.cpp
@@ -119,7 +119,7 @@ Profile::EntryList Profile::list(List type)
void Profile::addEntry(List type, const TQString &value)
{
TQStringList &list = listByType(type);
- if (!list.tqcontains(value))
+ if (!list.contains(value))
list.append(value);
}
diff --git a/src/profileengine/lib/profileengine.cpp b/src/profileengine/lib/profileengine.cpp
index 7a6d65d8..896d8080 100644
--- a/src/profileengine/lib/profileengine.cpp
+++ b/src/profileengine/lib/profileengine.cpp
@@ -57,7 +57,7 @@ void ProfileEngine::processDir(const TQString &dir, const TQString &currPath, TQ
{
TQString dirName = *eit;
Profile *profile = 0;
- if (passedPaths.tqcontains(currPath + dirName))
+ if (passedPaths.contains(currPath + dirName))
profile = passedPaths[currPath + dirName];
else
{
@@ -127,7 +127,7 @@ KTrader::OfferList ProfileEngine::offers(const TQString &profileName, OfferType
Profile::EntryList enableList = profile->list(Profile::ExplicitEnable);
for (Profile::EntryList::const_iterator it = enableList.begin(); it != enableList.end(); ++it)
{
- if (names.tqcontains((*it).name))
+ if (names.contains((*it).name))
continue;
TQString constraint = TQString::tqfromLatin1("[X-KDevelop-Version] == %1").tqarg(KDEVELOP_PLUGIN_VERSION);
constraint += TQString::tqfromLatin1("and [Name] == '%1'").tqarg((*it).name);
@@ -229,7 +229,7 @@ void ProfileEngine::diffProfiles(OfferType offerType, const TQString &profile1,
it != offers1List.constEnd(); ++it)
{
// kdDebug() << "checking: " << *it << endl;
- if (offers2List.tqcontains(*it))
+ if (offers2List.contains(*it))
{
// kdDebug() << " keep" << endl;
offers2.remove(offers2List[*it]);