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
Branches
Tags
No related merge requests found
......@@ -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);
}
}
......
......@@ -45,6 +45,10 @@ private:
virtual void DoCreateWidget();
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