Mark the TabWidget as internal and re-export it from the style

This commit is contained in:
Olivier Goffart 2021-08-09 12:41:03 +02:00
parent 16325d5474
commit a0a8cc3bc9
5 changed files with 7 additions and 1 deletions

View file

@ -7,7 +7,7 @@
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
import { Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView, ComboBox, HorizontalBox, VerticalBox, GridBox } from "sixtyfps_widgets.60";
import { Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView, ComboBox, HorizontalBox, VerticalBox, GridBox, TabWidget } from "sixtyfps_widgets.60";
App := Window {
preferred-width: 500px;

View file

@ -372,6 +372,7 @@ export TabWidget := _ {
//-disallow_global_types_as_child_elements
Tab {}
//-default_size_binding:expands_to_parent_geometry
//-is_internal
}
// Note: not a a native class, handled in the lower_popups pass

View file

@ -416,6 +416,8 @@ export TabBarImpl := HorizontalLayout {
alignment: start;
}
export TabWidget := TabWidget {}
export LineEdit := Rectangle {
property <string> text <=> input.text;
property <string> placeholder_text;

View file

@ -155,6 +155,7 @@ export TabImpl := NativeTab {}
export TabBarImpl := HorizontalLayout {
alignment: start;
}
export TabWidget := TabWidget {}
export VerticalBox := VerticalLayout {
spacing: NativeStyleMetrics.layout_spacing;

View file

@ -366,6 +366,8 @@ export TabImpl := Rectangle {
}
}
export TabWidget := TabWidget {}
export TabBarImpl := HorizontalLayout {
alignment: start;
}