1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import QtQuick
- import QtQuick.Templates as T
- T.VerticalHeaderView {
- id: control
- implicitWidth: contentWidth
- implicitHeight: syncView ? syncView.height : 0
- delegate: Rectangle {
-
- readonly property real cellPadding: 8
- implicitWidth: Math.max(control.width, text.implicitWidth + (cellPadding * 2))
- implicitHeight: text.implicitHeight + (cellPadding * 2)
- border.color: "#cacaca"
- gradient: Gradient {
- GradientStop {
- position: 0
- color: "#fbfbfb"
- }
- GradientStop {
- position: 1
- color: "#e0dfe0"
- }
- }
- Text {
- id: text
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole]
- : model[control.textRole])
- : modelData
- width: parent.width
- height: parent.height
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- color: "#ff26282a"
- }
- }
- }
|