Skip to content
Snippets Groups Projects
Commit 4e01052c authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: empty parameter support (WIP)

parent 1c069b33
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,8 @@ namespace Wrapper ...@@ -23,7 +23,8 @@ namespace Wrapper
{ {
QtWidgetEmptyParameter::QtWidgetEmptyParameter(EmptyParameter* emptyParam, QtWidgetModel* m) QtWidgetEmptyParameter::QtWidgetEmptyParameter(EmptyParameter* emptyParam, QtWidgetModel* m)
: QtWidgetParameterBase(m) : QtWidgetParameterBase(m),
m_EmptyParam(emptyParam)
{ {
} }
...@@ -39,18 +40,18 @@ void QtWidgetEmptyParameter::DoUpdateGUI() ...@@ -39,18 +40,18 @@ void QtWidgetEmptyParameter::DoUpdateGUI()
void QtWidgetEmptyParameter::DoCreateWidget() void QtWidgetEmptyParameter::DoCreateWidget()
{ {
// Set up input text edit // Set up input text edit
QHBoxLayout *hLayout = new QHBoxLayout; m_QHBoxLayout = new QHBoxLayout;
hLayout->setSpacing(0); m_QHBoxLayout->setSpacing(0);
hLayout->setContentsMargins(0, 0, 0, 0); m_QHBoxLayout->setContentsMargins(0, 0, 0, 0);
//QCheckBox* checkbox = new QCheckBox; m_QCheckBox = new QCheckBox;
//checkbox->setToolTip(emptyParam->GetDescription()); m_QCheckBox->setToolTip(m_EmptyParam->GetDescription());
//QString optionID(emptyParam->GetName()); QString optionID(m_EmptyParam->GetName());
//hLayout->addWidget(checkbox); m_QHBoxLayout->addWidget(m_QCheckBox);
hLayout->addStretch(); m_QHBoxLayout->addStretch();
this->setLayout(hLayout); this->setLayout(m_QHBoxLayout);
} }
} }
......
...@@ -45,6 +45,10 @@ private: ...@@ -45,6 +45,10 @@ private:
virtual void DoCreateWidget(); virtual void DoCreateWidget();
virtual void DoUpdateGUI(); virtual void DoUpdateGUI();
QHBoxLayout * m_QHBoxLayout;
QCheckBox * m_QCheckBox;
EmptyParameter::Pointer m_EmptyParam;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment