Skip to content
Snippets Groups Projects
Commit ae5910cd authored by Philip Scherer's avatar Philip Scherer
Browse files

Enable rec depth spinner if GetData is checked

parent 5c290be2
No related branches found
No related tags found
1 merge request!213Resolve "Implement Resolution of Memory Links in ARON Data during Query"
......@@ -28,6 +28,7 @@ namespace armarx::armem::gui
_recursionDepthSpinner = new QSpinBox();
_recursionDepthSpinner->setMinimum(-1);
_recursionDepthSpinner->setValue(0);
_recursionDepthSpinner->setEnabled(_dataCheckBox->isChecked());
_recursionDepthLabel = new QLabel("Link resolution depth");
......@@ -54,6 +55,10 @@ namespace armarx::armem::gui
// Public connections.
connect(_storeInLTMButton, &QPushButton::pressed, this, &This::storeInLTM);
// Private connections.
connect(
_dataCheckBox, &QCheckBox::stateChanged, this, &This::setRecursionDepthSpinnerEnabled);
setLayout(vlayout);
}
......@@ -82,4 +87,18 @@ namespace armarx::armem::gui
return qb.buildQueryInput();
}
void
QueryWidget::setRecursionDepthSpinnerEnabled(int state)
{
switch (state)
{
case Qt::Checked:
_recursionDepthSpinner->setEnabled(true);
break;
case Qt::Unchecked:
default:
_recursionDepthSpinner->setEnabled(false);
break;
}
}
}
......@@ -38,6 +38,7 @@ namespace armarx::armem::gui
private slots:
void setRecursionDepthSpinnerEnabled(int state);
signals:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment