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
|
|
|
|
|
2020-07-12 14:25:57 +10:00
|
|
|
|
2020-06-07 11:42:49 +10:00
|
|
|
implicitWidth: rectangle.width
|
|
|
|
implicitHeight: rectangle.height
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: clipArea
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
width: parent.width
|
2020-06-26 20:56:29 +10:00
|
|
|
height: 1
|
2020-06-07 11:42:49 +10:00
|
|
|
clip: true
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: borderRectangle
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
width: parent.width
|
|
|
|
height: root.height
|
|
|
|
radius: rectangle.radius
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|