Files
CuboBmsTool/qml/Controls/DotSeparator.qml
2022-08-15 08:49:12 +03:00

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();
// }
//}