35 lines
642 B
QML
35 lines
642 B
QML
import QtQuick 2.12
|
|
import QtQuick.Shapes 1.12
|
|
|
|
import Utils 1.0
|
|
|
|
Shape {
|
|
id: shape
|
|
implicitHeight: 1
|
|
|
|
ShapePath {
|
|
strokeColor: Palette.contentTextColor
|
|
strokeWidth: 1
|
|
strokeStyle: ShapePath.DashLine
|
|
dashPattern: [1, 3]
|
|
startX: 0
|
|
startY: 0
|
|
PathLine { x: shape.width; y: 0 }
|
|
}
|
|
}
|
|
|
|
//Canvas {
|
|
// id: canvas
|
|
// contextType: "2d"
|
|
// implicitHeight: 1
|
|
|
|
// onPaint: {
|
|
// var ctx = getContext("2d");
|
|
// ctx.setLineDash([2, 2]);
|
|
// ctx.beginPath();
|
|
// ctx.moveTo(0, 0);
|
|
// ctx.lineTo(width, 0);
|
|
// ctx.stroke();
|
|
// }
|
|
//}
|