GUI2/Tab Container: set members from builder
This commit is contained in:
parent
12d4a11959
commit
363241faf9
2 changed files with 2 additions and 12 deletions
|
@ -42,6 +42,8 @@ REGISTER_WIDGET(tab_container)
|
|||
tab_container::tab_container(const implementation::builder_tab_container& builder)
|
||||
: container_base(builder, type())
|
||||
, state_(ENABLED)
|
||||
, builders_(builder.builders)
|
||||
, list_items_(builder.list_items)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -178,9 +180,6 @@ std::unique_ptr<widget> builder_tab_container::build() const
|
|||
|
||||
widget->init_grid(*conf->grid);
|
||||
|
||||
widget->set_items(list_items);
|
||||
widget->set_builders(builders);
|
||||
|
||||
auto generator = generator_base::build(true, true, generator_base::independent, false);
|
||||
widget->finalize(std::move(generator));
|
||||
|
||||
|
|
|
@ -112,15 +112,6 @@ private:
|
|||
|
||||
void finalize_listbox();
|
||||
|
||||
void set_items(std::vector<widget_data> list_items)
|
||||
{
|
||||
list_items_ = list_items;
|
||||
}
|
||||
|
||||
void set_builders(std::vector<std::shared_ptr<builder_grid>> builders) {
|
||||
builders_ = builders;
|
||||
}
|
||||
|
||||
public:
|
||||
/** Static type getter that does not rely on the widget being constructed. */
|
||||
static const std::string& type();
|
||||
|
|
Loading…
Add table
Reference in a new issue