diff framework/TransformUserConfigurator.cpp @ 404:08a45e4cf1b1 tonioni

Update subrepos and merge from default branch
author Chris Cannam
date Tue, 02 Sep 2014 16:23:48 +0100
parents ad168a6510f0
children 72c662fe7ea3
line wrap: on
line diff
--- a/framework/TransformUserConfigurator.cpp	Fri Jul 18 13:25:11 2014 +0100
+++ b/framework/TransformUserConfigurator.cpp	Tue Sep 02 16:23:48 2014 +0100
@@ -30,6 +30,14 @@
 
 #include <typeinfo>
 
+static QWidget *parentWidget = 0;
+
+void
+TransformUserConfigurator::setParentWidget(QWidget *w)
+{
+    parentWidget = w;
+}
+
 bool
 TransformUserConfigurator::getChannelRange(TransformId identifier,
 					   Vamp::PluginBase *plugin,
@@ -142,7 +150,8 @@
 
     int defaultChannel = -1; //!!! no longer saved! [was context.channel]
 
-    PluginParameterDialog *dialog = new PluginParameterDialog(plugin);
+    PluginParameterDialog *dialog = new PluginParameterDialog
+        (plugin, parentWidget);
 
     dialog->setMoreInfoUrl(TransformFactory::getInstance()->
 			   getTransformInfoUrl(transform.getIdentifier()));