mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Mark the TabWidget as internal and re-export it from the style
This commit is contained in:
parent
16325d5474
commit
a0a8cc3bc9
5 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -416,6 +416,8 @@ export TabBarImpl := HorizontalLayout {
|
|||
alignment: start;
|
||||
}
|
||||
|
||||
export TabWidget := TabWidget {}
|
||||
|
||||
export LineEdit := Rectangle {
|
||||
property <string> text <=> input.text;
|
||||
property <string> placeholder_text;
|
||||
|
|
|
@ -155,6 +155,7 @@ export TabImpl := NativeTab {}
|
|||
export TabBarImpl := HorizontalLayout {
|
||||
alignment: start;
|
||||
}
|
||||
export TabWidget := TabWidget {}
|
||||
|
||||
export VerticalBox := VerticalLayout {
|
||||
spacing: NativeStyleMetrics.layout_spacing;
|
||||
|
|
|
@ -366,6 +366,8 @@ export TabImpl := Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
export TabWidget := TabWidget {}
|
||||
|
||||
export TabBarImpl := HorizontalLayout {
|
||||
alignment: start;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue