1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import QtQuick
- import QtQuick.Templates as T
- import QtQuick.Controls.Material
- T.PageIndicator {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- padding: 6
- spacing: 6
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
- radius: width / 2
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
-
-
-
- opacity: index === control.currentIndex ? 0.95 : pressed ? 0.7 : 0.45
- required property int index
- Behavior on opacity { OpacityAnimator { duration: 100 } }
- }
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
- }
|