Logo Search packages:      
Sourcecode: ktechlab version File versions

void MicroSettings::setPortType ( const QString &  port,
int  type 
)

Sets the port with the given name to the given type

Definition at line 193 of file microsettings.cpp.

Referenced by MicroSettingsDlg::savePort().

{
      PortList::iterator plit = m_ports.find(port);
      if ( plit == m_ports.end() ) return;
      
      const PinSettingsList::iterator plitEnd = plit.data().end();
      for ( PinSettingsList::iterator it = plit.data().begin(); it != plitEnd; ++it )
      {
            (*it)->setType( (type%2 == 1) ? PinSettings::pt_input : PinSettings::pt_output );
            type /= 2;
      }
}


Generated by  Doxygen 1.6.0   Back to index