comparison framework/MainWindowBase.cpp @ 761:6429a164b7e1 pitch-align

Schedule alignments with a small delay to avoid too much UI unresponsiveness. Also overhaul error reporting to use signals throughout.
author Chris Cannam
date Wed, 06 May 2020 11:45:27 +0100
parents baa7d3a85317
children da57ab54f0e8
comparison
equal deleted inserted replaced
757:f32df46d0c84 761:6429a164b7e1
2712 this, SLOT(modelGenerationFailed(QString, QString))); 2712 this, SLOT(modelGenerationFailed(QString, QString)));
2713 connect(m_document, SIGNAL(modelRegenerationWarning(QString, QString, QString)), 2713 connect(m_document, SIGNAL(modelRegenerationWarning(QString, QString, QString)),
2714 this, SLOT(modelRegenerationWarning(QString, QString, QString))); 2714 this, SLOT(modelRegenerationWarning(QString, QString, QString)));
2715 connect(m_document, SIGNAL(alignmentComplete(ModelId)), 2715 connect(m_document, SIGNAL(alignmentComplete(ModelId)),
2716 this, SLOT(alignmentComplete(ModelId))); 2716 this, SLOT(alignmentComplete(ModelId)));
2717 connect(m_document, SIGNAL(alignmentFailed(QString)), 2717 connect(m_document, SIGNAL(alignmentFailed(ModelId, QString)),
2718 this, SLOT(alignmentFailed(QString))); 2718 this, SLOT(alignmentFailed(ModelId, QString)));
2719 2719
2720 m_document->setAutoAlignment(m_viewManager->getAlignMode()); 2720 m_document->setAutoAlignment(m_viewManager->getAlignMode());
2721 2721
2722 emit replacedDocument(); 2722 emit replacedDocument();
2723 } 2723 }