diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx index 8437971e819f307dc7db7d7eeff8dda50a0202b5..22b2f0363f338a4575afbf3b6f1e822a4d1dda3a 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.cxx @@ -23,7 +23,8 @@ namespace Wrapper { QtWidgetEmptyParameter::QtWidgetEmptyParameter(EmptyParameter* emptyParam, QtWidgetModel* m) -: QtWidgetParameterBase(m) + : QtWidgetParameterBase(m), + m_EmptyParam(emptyParam) { } @@ -39,18 +40,18 @@ void QtWidgetEmptyParameter::DoUpdateGUI() void QtWidgetEmptyParameter::DoCreateWidget() { // Set up input text edit - QHBoxLayout *hLayout = new QHBoxLayout; - hLayout->setSpacing(0); - hLayout->setContentsMargins(0, 0, 0, 0); + m_QHBoxLayout = new QHBoxLayout; + m_QHBoxLayout->setSpacing(0); + m_QHBoxLayout->setContentsMargins(0, 0, 0, 0); - //QCheckBox* checkbox = new QCheckBox; - //checkbox->setToolTip(emptyParam->GetDescription()); + m_QCheckBox = new QCheckBox; + m_QCheckBox->setToolTip(m_EmptyParam->GetDescription()); - //QString optionID(emptyParam->GetName()); - //hLayout->addWidget(checkbox); - hLayout->addStretch(); + QString optionID(m_EmptyParam->GetName()); + m_QHBoxLayout->addWidget(m_QCheckBox); + m_QHBoxLayout->addStretch(); - this->setLayout(hLayout); + this->setLayout(m_QHBoxLayout); } } diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h b/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h index 3c7f5b336662f0134d7106f28ad57230c2370ad6..d733bc868f075ae26d25a3ecdb8e15185d41e2f4 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetEmptyParameter.h @@ -45,6 +45,10 @@ private: virtual void DoCreateWidget(); virtual void DoUpdateGUI(); + + QHBoxLayout * m_QHBoxLayout; + QCheckBox * m_QCheckBox; + EmptyParameter::Pointer m_EmptyParam; };