From b6edfe41c9395f2e20784cbf0e630af6426950a3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/koproperty/set.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/koproperty/set.cpp') diff --git a/lib/koproperty/set.cpp b/lib/koproperty/set.cpp index 3193a50f..d508fc0a 100644 --- a/lib/koproperty/set.cpp +++ b/lib/koproperty/set.cpp @@ -73,7 +73,7 @@ class SetPrivate inline KoProperty::Property& property(const TQCString &name) const { - KoProperty::Property *p = dict.tqfind(name); + KoProperty::Property *p = dict.find(name); if (p) return *p; Set_nonConstNull.setName(0); //to ensure returned property is null @@ -178,7 +178,7 @@ Set::addPropertyInternal(Property *property, TQCString group, bool updateSorting return; } - Property *p = d->dict.tqfind(property->name()); + Property *p = d->dict.find(property->name()); if(p) { p->addRelatedProperty(property); } @@ -218,7 +218,7 @@ Set::removeProperty(const TQCString &name) if(name.isNull()) return; - Property *p = d->dict.tqfind(name); + Property *p = d->dict.find(name); removeProperty(p); } @@ -255,10 +255,10 @@ Set::addToGroup(const TQCString &group, Property *property) return; //do not add the same property to the group twice - if(d->groupForProperty.tqcontains(property) && (d->groupForProperty[property] == group)) + if(d->groupForProperty.contains(property) && (d->groupForProperty[property] == group)) return; - if(!d->propertiesOfGroup.tqcontains(group)) { // group doesn't exist + if(!d->propertiesOfGroup.contains(group)) { // group doesn't exist TQValueList l; l.append(property->name()); d->propertiesOfGroup.insert(group, l); @@ -280,7 +280,7 @@ Set::removeFromGroup(Property *property) if (d->propertiesOfGroup[group].isEmpty()) { //remove group as well d->propertiesOfGroup.remove(group); - TQValueListIterator it = d->groupNames.tqfind(group); + TQValueListIterator it = d->groupNames.find(group); if (it != d->groupNames.end()) { d->groupNames.remove(it); } @@ -309,7 +309,7 @@ Set::setGroupDescription(const TQCString &group, const TQString& desc) TQString Set::groupDescription(const TQCString &group) const { - if(d->groupDescriptions.tqcontains(group)) + if(d->groupDescriptions.contains(group)) return d->groupDescriptions[group]; return group; } @@ -353,9 +353,9 @@ Set::setReadOnly(bool readOnly) } bool -Set::tqcontains(const TQCString &name) const +Set::contains(const TQCString &name) const { - return d->dict.tqfind(name); + return d->dict.find(name); } Property& @@ -497,7 +497,7 @@ void Buffer::intersectedChanged(KoProperty::Set& set, KoProperty::Property& prop { Q_UNUSED(set); TQCString propertyName = prop.name(); - if ( !tqcontains( propertyName ) ) + if ( !contains( propertyName ) ) return; const TQValueList *props = prop.related(); @@ -511,7 +511,7 @@ void Buffer::intersectedReset(KoProperty::Set& set, KoProperty::Property& prop) { Q_UNUSED(set); TQCString propertyName = prop.name(); - if ( !tqcontains( propertyName ) ) + if ( !contains( propertyName ) ) return; const TQValueList *props = prop.related(); -- cgit v1.2.1