Mercurial > hg > svapp
comparison framework/Document.cpp @ 456:8125b8cb8128
Pass on signal from transform failure
author | Chris Cannam |
---|---|
date | Wed, 10 Jun 2015 13:13:22 +0100 |
parents | 72c662fe7ea3 |
children | 74d575708e06 |
comparison
equal
deleted
inserted
replaced
455:1ab4ac6b2fcb | 456:8125b8cb8128 |
---|---|
49 | 49 |
50 Document::Document() : | 50 Document::Document() : |
51 m_mainModel(0), | 51 m_mainModel(0), |
52 m_autoAlignment(false) | 52 m_autoAlignment(false) |
53 { | 53 { |
54 connect(this, SIGNAL(modelAboutToBeDeleted(Model *)), | 54 connect(this, |
55 SIGNAL(modelAboutToBeDeleted(Model *)), | |
55 ModelTransformerFactory::getInstance(), | 56 ModelTransformerFactory::getInstance(), |
56 SLOT(modelAboutToBeDeleted(Model *))); | 57 SLOT(modelAboutToBeDeleted(Model *))); |
58 | |
59 connect(ModelTransformerFactory::getInstance(), | |
60 SIGNAL(transformFailed(QString, QString)), | |
61 this, | |
62 SIGNAL(modelGenerationFailed(QString, QString))); | |
57 } | 63 } |
58 | 64 |
59 Document::~Document() | 65 Document::~Document() |
60 { | 66 { |
61 //!!! Document should really own the command history. atm we | 67 //!!! Document should really own the command history. atm we |