changeset 456:8125b8cb8128

Pass on signal from transform failure
author Chris Cannam
date Wed, 10 Jun 2015 13:13:22 +0100
parents 1ab4ac6b2fcb
children 3485d324c172
files framework/Document.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/framework/Document.cpp	Thu May 21 15:32:18 2015 +0100
+++ b/framework/Document.cpp	Wed Jun 10 13:13:22 2015 +0100
@@ -51,9 +51,15 @@
     m_mainModel(0),
     m_autoAlignment(false)
 {
-    connect(this, SIGNAL(modelAboutToBeDeleted(Model *)),
+    connect(this,
+            SIGNAL(modelAboutToBeDeleted(Model *)),
             ModelTransformerFactory::getInstance(),
             SLOT(modelAboutToBeDeleted(Model *)));
+
+    connect(ModelTransformerFactory::getInstance(),
+            SIGNAL(transformFailed(QString, QString)),
+            this,
+            SIGNAL(modelGenerationFailed(QString, QString)));
 }
 
 Document::~Document()