override contentItem and alias orientation
This commit is contained in:
parent
93b3a09a0a
commit
83e9c6f08c
1 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue