diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/flowparts | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/flowparts')
-rw-r--r-- | src/flowparts/embed.cpp | 2 | ||||
-rw-r--r-- | src/flowparts/flowpart.cpp | 14 | ||||
-rw-r--r-- | src/flowparts/pinmapping.cpp | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/flowparts/embed.cpp b/src/flowparts/embed.cpp index f858747..f6bb3b2 100644 --- a/src/flowparts/embed.cpp +++ b/src/flowparts/embed.cpp @@ -58,7 +58,7 @@ Embed::~Embed() void Embed::dataChanged() { - const TQString sample = dataString("code").left(10).tqreplace("\n"," "); + const TQString sample = dataString("code").left(10).replace("\n"," "); setCaption( i18n("%1: %2...").tqarg(dataString("type")).tqarg(sample) ); } diff --git a/src/flowparts/flowpart.cpp b/src/flowparts/flowpart.cpp index 69d42a4..5adb3b5 100644 --- a/src/flowparts/flowpart.cpp +++ b/src/flowparts/flowpart.cpp @@ -403,7 +403,7 @@ FlowPart* FlowPart::endPart( TQStringList ids, FlowPartList *previousParts ) const bool createdList = (!previousParts); if (createdList) { previousParts = new FlowPartList; - } else if ( previousParts->tqcontains(this) ) { + } else if ( previousParts->contains(this) ) { return 0l; } previousParts->append(this); @@ -426,7 +426,7 @@ FlowPart* FlowPart::endPart( TQStringList ids, FlowPartList *previousParts ) FlowPart *part = outputPart(*it); while (part) { - if ( !validParts.tqcontains(part) ) + if ( !validParts.contains(part) ) { validParts.append(part); // if ( part->level() >= level() ) { @@ -462,7 +462,7 @@ FlowPart* FlowPart::endPart( TQStringList ids, FlowPartList *previousParts ) bool ok = true; for ( ValidPartsList::iterator vplit = validPartsList.begin(); vplit != vplEnd; ++vplit ) { - if ( !(*vplit).tqcontains(*it) ) ok = false; + if ( !(*vplit).contains(*it) ) ok = false; } if (ok) return *it; } @@ -591,14 +591,14 @@ void FlowPart::slotUpdateFlowPartVariables() else if ( v->type() == Variant::Type::SevenSegment ) { v->setAllowed( sevenSegMaps ); - if ( !sevenSegMaps.isEmpty() && !sevenSegMaps.tqcontains( v->value().toString() ) ) + if ( !sevenSegMaps.isEmpty() && !sevenSegMaps.contains( v->value().toString() ) ) v->setValue( sevenSegMaps.first() ); } else if ( v->type() == Variant::Type::KeyPad ) { v->setAllowed( keyPadMaps ); - if ( !keyPadMaps.isEmpty() && !keyPadMaps.tqcontains( v->value().toString() ) ) + if ( !keyPadMaps.isEmpty() && !keyPadMaps.contains( v->value().toString() ) ) v->setValue( keyPadMaps.first() ); } } @@ -665,8 +665,8 @@ void FlowPart::updateAttachedPositioning( ) NodeInfo * stdOutputInfo = m_stdOutput ? &m_nodeMap["stdoutput"] : 0; NodeInfo * altOutputInfo = m_altOutput ? &m_nodeMap["altoutput"] : 0l; - Text *outputTrueText = m_textMap.tqcontains("output_true") ? m_textMap["output_true"] : 0l; - Text *outputFalseText = m_textMap.tqcontains("output_false") ? m_textMap["output_false"] : 0l; + Text *outputTrueText = m_textMap.contains("output_true") ? m_textMap["output_true"] : 0l; + Text *outputFalseText = m_textMap.contains("output_false") ? m_textMap["output_false"] : 0l; if ( stdOutputInfo && outputTrueText ) outputTrueText->setOriginalRect( textPos[ nodeDirToPos( (Node::node_dir)stdOutputInfo->orientation ) ] ); diff --git a/src/flowparts/pinmapping.cpp b/src/flowparts/pinmapping.cpp index b00b2b3..ee1c8b8 100644 --- a/src/flowparts/pinmapping.cpp +++ b/src/flowparts/pinmapping.cpp @@ -360,7 +360,7 @@ void PIC_IC::initPackage( MicroInfo * microInfo ) const TQStringList::iterator allPinIDsEnd = allPinIDs.end(); for ( TQStringList::iterator it = allPinIDs.begin(); it != allPinIDsEnd; ++it ) { - if ( !ioPinIDs.tqcontains(*it) ) + if ( !ioPinIDs.contains(*it) ) *it = ""; } //END Get pin IDs @@ -378,7 +378,7 @@ void PIC_IC::initPackage( MicroInfo * microInfo ) const NodeMap::iterator nodeMapEnd = nodeMapCopy.end(); for ( NodeMap::iterator it = nodeMapCopy.begin(); it != nodeMapEnd; ++it ) { - if ( !ioPinIDs.tqcontains(it.key()) ) + if ( !ioPinIDs.contains(it.key()) ) removeNode( it.key() ); } //END Remove old stuff |