Skip to content
Snippets Groups Projects
Commit 7c90a090 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Change WidgetDescription::makeGroupBox to optionally add a frame

parent 4e5ac673
No related branches found
No related tags found
No related merge requests found
......@@ -99,11 +99,12 @@ namespace armarx
return l;
}
GroupBoxPtr makeGroupBox(std::string label, WidgetPtr child)
GroupBoxPtr makeGroupBox(std::string label, WidgetPtr child, bool framed)
{
GroupBoxPtr w = new GroupBox;
w->child = std::move(child);
w->label = std::move(label);
w->framed = framed;
return w;
}
......
......@@ -40,7 +40,7 @@ namespace armarx
FormLayoutPtr makeFormLayout(std::vector<std::pair<std::string, WidgetPtr>> elements);
FormLayoutPtr makeFormLayout(std::vector<WidgetPtr> elements);
GroupBoxPtr makeGroupBox(std::string label, WidgetPtr child);
GroupBoxPtr makeGroupBox(std::string label, WidgetPtr child, bool framed = false);
WidgetPtr makeFrame(WidgetPtr child);
......
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