From 83e9c6f08c3174d9cad7dc49ee2addb1b69ca1ff Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 11 Sep 2025 23:56:56 -0400 Subject: [PATCH] override contentItem and alias orientation --- components/StyledTabBar.qml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/components/StyledTabBar.qml b/components/StyledTabBar.qml index 70a92c1..3c0b933 100644 --- a/components/StyledTabBar.qml +++ b/components/StyledTabBar.qml @@ -1,8 +1,20 @@ +import qs.config import QtQuick import QtQuick.Controls.Basic TabBar { id: control - background: Item {} + property alias orientation: view.orientation + + contentItem: ListView { + id: view + model: control.contentModel + currentIndex: control.currentIndex + orientation: ListView.Horizontal + boundsBehavior: Flickable.StopAtBounds + } + background: Rectangle { + color: Styling.theme.base200 + } }