import QtQuick 2.12 import QtQuick.Shapes 1.12 import Utils 1.0 Shape { id: shape implicitWidth: 1 implicitHeight: 1 property bool horizontal: true ShapePath { strokeColor: Palette.borderColor strokeStyle: ShapePath.SolidLine startX: 0 startY: 0 PathLine { x: horizontal ? shape.width : 0; y: horizontal ? 0 : shape.height } } }