From b9afef9de28d54316b26a5f65762310ce96b6bbc Mon Sep 17 00:00:00 2001 From: Raphael Grimm <raphael.grimm@student.kit.edu> Date: Tue, 15 Aug 2017 13:21:28 +0200 Subject: [PATCH] Add WidgetDescription::makeSpanningFormLayoutElement --- .../DefaultWidgetDescriptions/DefaultWidgetDescriptions.cpp | 5 +++++ .../DefaultWidgetDescriptions/DefaultWidgetDescriptions.h | 1 + 2 files changed, 6 insertions(+) diff --git a/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.cpp b/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.cpp index 5bbb883a..4d4f4cd0 100644 --- a/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.cpp +++ b/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.cpp @@ -77,6 +77,11 @@ namespace armarx return e; } + FormLayoutElementPtr makeSpanningFormLayoutElement(WidgetPtr child) + { + return makeFormLayoutElement(std::move(child), true); + } + FormLayoutPtr makeFormLayout(std::vector<std::pair<std::string, WidgetPtr> > elements) { FormLayoutPtr l = new FormLayout; diff --git a/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.h b/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.h index 4c38cde5..b6e3ea01 100644 --- a/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.h +++ b/source/ArmarXGui/libraries/DefaultWidgetDescriptions/DefaultWidgetDescriptions.h @@ -34,6 +34,7 @@ namespace armarx VBoxLayoutPtr makeVBoxLayout(std::vector<WidgetPtr> elements); FormLayoutElementPtr makeFormLayoutElement(WidgetPtr child, bool spanning = false); + FormLayoutElementPtr makeSpanningFormLayoutElement(WidgetPtr child); FormLayoutElementPtr makeFormLayoutElement(std::string name, WidgetPtr child, bool spanning = false); FormLayoutElementPtr makeFormLayoutElement(WidgetPtr labelWidget, WidgetPtr child); -- GitLab