Esempio n. 1
0
void NeuronAdapter::setNeuron(Neuron *neuron)
{
    m_neuron = neuron;
    m_isInput = neuron->isInput();
    emit isInputChanged(m_isInput);
    m_isOutput = neuron->isOutput();
    emit isOutputChanged(m_isOutput);
}
Esempio n. 2
0
/// mode changed handler
void SignalItem::onParentModeChanged(int) {
    isOutputChanged(getIsOutput());
    isInputChanged(getIsInput());
}