From 336df8895a71154d0388b596edc1494fadc37353 Mon Sep 17 00:00:00 2001 From: taichi765 Date: Tue, 2 Dec 2025 12:33:32 +0900 Subject: [PATCH 1/5] docs: Add `orientation` to `TabWidget` --- .../content/docs/reference/std-widgets/views/tabwidget.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx index 7bea68332d9..d29dffcec68 100644 --- a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx +++ b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx @@ -50,6 +50,13 @@ TabWidget { ``` + +### orientation + +The orientation of the tab bar. +When set to `vertical`, the tab bar is placed to the left of the content. + + ## Properties of the `Tab` element ### title From cfb55f1ac2a5c7c941090714458b20c82fb8e45a Mon Sep 17 00:00:00 2001 From: taichi765 Date: Tue, 2 Dec 2025 19:57:16 +0900 Subject: [PATCH 2/5] docs: Note that the property must be constant --- .../docs/reference/std-widgets/views/tabwidget.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx index d29dffcec68..1b1f830ad03 100644 --- a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx +++ b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx @@ -55,6 +55,17 @@ TabWidget { The orientation of the tab bar. When set to `vertical`, the tab bar is placed to the left of the content. +The property must be constant. +For example: +```slint +TabWidget { + in property foo; + orientation: foo; // error + Tab { + title: "First"; + } +} +``` ## Properties of the `Tab` element From 57a4c8dd178733a39d11de928bce4217c47d1ec9 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 10:59:11 +0000 Subject: [PATCH 3/5] [autofix.ci] apply automated fixes --- .../src/content/docs/reference/std-widgets/views/tabwidget.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx index 1b1f830ad03..ad076eb58d4 100644 --- a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx +++ b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx @@ -56,7 +56,7 @@ TabWidget { The orientation of the tab bar. When set to `vertical`, the tab bar is placed to the left of the content. The property must be constant. -For example: +For example: ```slint TabWidget { in property foo; From cf5ca3e48e8123c32d1fc70299c6e6dd1bf0f2b9 Mon Sep 17 00:00:00 2001 From: taichi765 Date: Tue, 2 Dec 2025 21:02:44 +0900 Subject: [PATCH 4/5] fix: Comment out invalid example --- .../src/content/docs/reference/std-widgets/views/tabwidget.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx index 1b1f830ad03..0318cba0af8 100644 --- a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx +++ b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx @@ -60,7 +60,8 @@ For example: ```slint TabWidget { in property foo; - orientation: foo; // error + // orientation: foo; // error + orientation: Orientation.vertical //valid Tab { title: "First"; } From 6421f0faff56b81d44760b925a94a4aec9dba800 Mon Sep 17 00:00:00 2001 From: taichi765 Date: Tue, 2 Dec 2025 12:54:18 +0000 Subject: [PATCH 5/5] fix: Add semicolon --- .../src/content/docs/reference/std-widgets/views/tabwidget.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx index 02ebbb352cb..378a87f6054 100644 --- a/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx +++ b/docs/astro/src/content/docs/reference/std-widgets/views/tabwidget.mdx @@ -61,7 +61,7 @@ For example: TabWidget { in property foo; // orientation: foo; // error - orientation: Orientation.vertical //valid + orientation: Orientation.vertical; //valid Tab { title: "First"; }