form line: add constructor without lvobj
This commit is contained in:
+6
@@ -73,6 +73,12 @@ FormGroup::Line::Line(Window* parent, lv_obj_t* obj, FlexGridLayout* layout) :
|
|||||||
construct();
|
construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FormGroup::Line::Line(Window* parent, FlexGridLayout* layout) :
|
||||||
|
Window(parent, rect_t{}), layout(layout)
|
||||||
|
{
|
||||||
|
construct();
|
||||||
|
}
|
||||||
|
|
||||||
void FormGroup::Line::construct()
|
void FormGroup::Line::construct()
|
||||||
{
|
{
|
||||||
// forward scroll and focus
|
// forward scroll and focus
|
||||||
|
|||||||
+1
@@ -88,6 +88,7 @@ class FormGroup : public Window
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Line(Window *parent, lv_obj_t *obj, FlexGridLayout *layout = nullptr);
|
Line(Window *parent, lv_obj_t *obj, FlexGridLayout *layout = nullptr);
|
||||||
|
Line(Window *parent, FlexGridLayout *layout = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void addChild(Window *window) override;
|
void addChild(Window *window) override;
|
||||||
|
|||||||
Reference in New Issue
Block a user