formatting tabs
This commit is contained in:
parent
338e81d3ad
commit
5e82fd906d
3 changed files with 69 additions and 75 deletions
|
|
@ -5,20 +5,14 @@ TabBar {
|
|||
id: control
|
||||
|
||||
property alias orientation: view.orientation
|
||||
spacing: 12
|
||||
|
||||
contentItem: Item {
|
||||
ListView {
|
||||
id: view
|
||||
anchors.centerIn: parent
|
||||
implicitWidth: parent.width - 20
|
||||
implicitHeight: parent.height - 20
|
||||
model: control.contentModel
|
||||
currentIndex: control.currentIndex
|
||||
spacing: control.spacing
|
||||
orientation: ListView.Horizontal
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
}
|
||||
contentItem: ListView {
|
||||
id: view
|
||||
model: control.contentModel
|
||||
currentIndex: control.currentIndex
|
||||
spacing: control.spacing
|
||||
orientation: ListView.Horizontal
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
}
|
||||
|
||||
background: Item {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue