diff options
Diffstat (limited to 'src/electronics/simulation/circuit.cpp')
-rw-r--r-- | src/electronics/simulation/circuit.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/electronics/simulation/circuit.cpp b/src/electronics/simulation/circuit.cpp index c152756..c138a7a 100644 --- a/src/electronics/simulation/circuit.cpp +++ b/src/electronics/simulation/circuit.cpp @@ -50,19 +50,19 @@ Circuit::~Circuit() void Circuit::addPin( Pin *node ) { - if ( m_pinList.contains(node) ) return; + if ( m_pinList.tqcontains(node) ) return; m_pinList.append(node); } void Circuit::addElement( Element *element ) { - if ( m_elementList.contains(element) ) return; + if ( m_elementList.tqcontains(element) ) return; m_elementList.append(element); } -bool Circuit::contains( Pin *node ) +bool Circuit::tqcontains( Pin *node ) { - return m_pinList.contains(node); + return m_pinList.tqcontains(node); } @@ -427,7 +427,7 @@ void Circuit::createMatrixMap() bool Circuit::recursivePinAdd( Pin *node, PinList *unassignedNodes, PinList *associated, PinList *nodes ) { - if ( !unassignedNodes->contains(node) ) + if ( !unassignedNodes->tqcontains(node) ) return false; unassignedNodes->remove(node); @@ -437,7 +437,7 @@ bool Circuit::recursivePinAdd( Pin *node, PinList *unassignedNodes, PinList *ass const PinList::const_iterator dEnd = circuitDependentPins.end(); for ( PinList::const_iterator it = circuitDependentPins.begin(); it != dEnd; ++it ) { - if ( !associated->contains(*it) ) + if ( !associated->tqcontains(*it) ) associated->append(*it); } |