Implemented QML skeleton for the application
This commit is contained in:
34
qml/Controls/DotSeparator.qml
Normal file
34
qml/Controls/DotSeparator.qml
Normal file
@@ -0,0 +1,34 @@
|
||||
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();
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user