slint/internal/compiler/widgets/qt/groupbox.slint
FloVanGH c931cc28ae
ChangeLog: std-widgets: added content-padding to GroupBox (#8314)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-02 07:11:52 +00:00

23 lines
941 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export component GroupBox {
in property title <=> native.title;
in property enabled <=> native.enabled;
in property <length> content-padding: -1px;
accessible-role: groupbox;
accessible-label: root.title;
accessible-enabled: root.enabled;
native := NativeGroupBox {
GridLayout {
padding-left: root.content-padding >= 0 ? root.content-padding : native.native-padding-left;
padding-right: root.content-padding >= 0 ? root.content-padding : native.native-padding-right;
padding-top: root.content-padding >= 0 ? root.content-padding : native.native-padding-top;
padding-bottom: root.content-padding >= 0 ? root.content-padding : native.native-padding-bottom;
@children
}
}
}