2020-06-07 11:42:49 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property Rectangle rectangle: parent
|
|
|
|
property alias borderHeight: clipArea.height
|
|
|
|
property alias color: borderRectangle.color
|
|
|
|
|
|
|
|
implicitWidth: rectangle.width
|
|
|
|
implicitHeight: rectangle.height
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: clipArea
|
2020-09-21 05:41:02 +10:00
|
|
|
anchors.bottom: parent ? parent.bottom : undefined
|
|
|
|
width: parent ? parent.width : 0
|
2020-06-26 20:56:29 +10:00
|
|
|
height: 1
|
2020-06-07 11:42:49 +10:00
|
|
|
clip: true
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: borderRectangle
|
2020-09-21 05:41:02 +10:00
|
|
|
anchors.bottom: parent ? parent.bottom : undefined
|
|
|
|
width: parent ? parent.width : 0
|
2020-06-07 11:42:49 +10:00
|
|
|
height: root.height
|
|
|
|
radius: rectangle.radius
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|