123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import QtQuick
- import QtQuick.Templates as T
- T.TabBar {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- spacing: 1
- contentItem: ListView {
- model: control.contentModel
- currentIndex: control.currentIndex
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.AutoFlickIfNeeded
- snapMode: ListView.SnapToItem
- highlightMoveDuration: 0
- highlightRangeMode: ListView.ApplyRange
- preferredHighlightBegin: 40
- preferredHighlightEnd: width - 40
- }
- background: Rectangle {
- color: control.palette.window
- }
- }
|