Пример #1
0
void ShutterFunctionDialog::slotUpdateNode()
{
    qDebug() << "slotUpdateNode();";
    if (m_project->nodes()->size() >= 2) {
        Q_ASSERT(m_segment+1 < m_project->nodes()->size());
        QString id = ui->cbFunction->currentText();
        if (id == emptyFunction) {
            id = "";
        }
        Node_sV *node = &(*m_project->nodes())[m_segment];
        node->setShutterFunctionID(id);
        qDebug() << "Shutter function ID of node " << node << "set to " << id;
    }
}