Logo Search packages:      
Sourcecode: ktechlab version File versions

PinSettings * MicroSettings::pinWithID ( const QString &  id  ) 

Returns a pointer to the PinSettings for the pin with the given id, or null if no such pin exists.

Definition at line 127 of file microsettings.cpp.

Referenced by setPinState(), and setPinType().

{
      const PinSettingsList::iterator pinListEnd = m_pinSettingsList.end();
      for ( PinSettingsList::iterator it = m_pinSettingsList.begin(); it != pinListEnd; ++it )
      {
            if ( (*it)->id() == id ) return *it;
      }
      return 0L;
}


Generated by  Doxygen 1.6.0   Back to index