Commit 2aa793fb authored by Victor Poughon's avatar Victor Poughon

BUG: Fix missing widget parent in tests

parent 4108a75e
......@@ -114,10 +114,10 @@ int otbWrapperQtWidgetParameterFactory(int argc, char* argv[])
choiceParam->AddChoice("choice2", "Choice 2");
choiceParam->AddChoice("choice3", "Choice 3");
QWidget * intWidget = factory->CreateQtWidget(intParam, model);
QWidget * floatWidget = factory->CreateQtWidget(floatParam, model);
QWidget * emptyWidget = factory->CreateQtWidget(emptyParam, model);
QWidget * choiceWidget = factory->CreateQtWidget(choiceParam, model);
QWidget * intWidget = factory->CreateQtWidget(intParam, model, nullptr);
QWidget * floatWidget = factory->CreateQtWidget(floatParam, model, nullptr);
QWidget * emptyWidget = factory->CreateQtWidget(emptyParam, model, nullptr);
QWidget * choiceWidget = factory->CreateQtWidget(choiceParam, model, nullptr);
if(intWidget)
{
......@@ -238,7 +238,7 @@ int otbWrapperQtWidgetParameterGroup(int argc, char* argv[])
group2->AddParameter(otb::Wrapper::Parameter::Pointer(stringParam2.GetPointer()));
group2->AddParameter(otb::Wrapper::Parameter::Pointer(list.GetPointer()));
QWidget * group = new otb::Wrapper::QtWidgetParameterGroup(group2, model);
QWidget * group = new otb::Wrapper::QtWidgetParameterGroup(group2, model, nullptr);
if(group)
{
......
......@@ -73,14 +73,14 @@ int otbWrapperQtWidgetShowWidget(int argc, char* argv[])
QMainWindow* mainWindow = new QMainWindow();
// Create GUI based on module
QtWidgetView* gui = new QtWidgetView(app);
QtWidgetView* gui = new QtWidgetView(app, mainWindow);
gui->CreateGui();
// Connect the View "Quit" signal, to the mainWindow close slot
QObject::connect(gui, SIGNAL(QuitSignal()), mainWindow, SLOT(close()));
// Create a progressReport object
QtWidgetProgressReport* progressReport = new QtWidgetProgressReport(gui->GetModel());
QtWidgetProgressReport* progressReport = new QtWidgetProgressReport(gui->GetModel(), mainWindow);
progressReport->SetApplication(app);
// Create a dock widget containing the progress widget
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment