RibbonRectangle: Add padding property.
This commit is contained in:
parent
f317fcbde7
commit
2a8a1816dd
|
@ -11,6 +11,10 @@ Item {
|
||||||
property int topRightRadius: radius
|
property int topRightRadius: radius
|
||||||
property int bottomLeftRadius: radius
|
property int bottomLeftRadius: radius
|
||||||
property int bottomRightRadius: radius
|
property int bottomRightRadius: radius
|
||||||
|
property int topPadding: 0
|
||||||
|
property int leftPadding: 0
|
||||||
|
property int rightPadding: 0
|
||||||
|
property int bottomPadding: 0
|
||||||
property real borderWidth: 0
|
property real borderWidth: 0
|
||||||
property string borderColor: "transparent"
|
property string borderColor: "transparent"
|
||||||
default property alias contentItem: container.data
|
default property alias contentItem: container.data
|
||||||
|
@ -65,7 +69,13 @@ Item {
|
||||||
|
|
||||||
Item{
|
Item{
|
||||||
id: container
|
id: container
|
||||||
anchors.fill: parent
|
anchors{
|
||||||
|
fill: parent
|
||||||
|
topMargin: control.topPadding
|
||||||
|
bottomMargin: control.bottomPadding
|
||||||
|
leftMargin: control.leftPadding
|
||||||
|
rightMargin: control.rightPadding
|
||||||
|
}
|
||||||
clip: true
|
clip: true
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: OpacityMask {
|
layer.effect: OpacityMask {
|
||||||
|
|
|
@ -11,6 +11,10 @@ Item {
|
||||||
property int topRightRadius: radius
|
property int topRightRadius: radius
|
||||||
property int bottomLeftRadius: radius
|
property int bottomLeftRadius: radius
|
||||||
property int bottomRightRadius: radius
|
property int bottomRightRadius: radius
|
||||||
|
property int topPadding: 0
|
||||||
|
property int leftPadding: 0
|
||||||
|
property int rightPadding: 0
|
||||||
|
property int bottomPadding: 0
|
||||||
property real borderWidth: 0
|
property real borderWidth: 0
|
||||||
property string borderColor: "transparent"
|
property string borderColor: "transparent"
|
||||||
default property alias contentItem: container.data
|
default property alias contentItem: container.data
|
||||||
|
@ -65,7 +69,13 @@ Item {
|
||||||
|
|
||||||
Item{
|
Item{
|
||||||
id: container
|
id: container
|
||||||
anchors.fill: parent
|
anchors{
|
||||||
|
fill: parent
|
||||||
|
topMargin: control.topPadding
|
||||||
|
bottomMargin: control.bottomPadding
|
||||||
|
leftMargin: control.leftPadding
|
||||||
|
rightMargin: control.rightPadding
|
||||||
|
}
|
||||||
clip: true
|
clip: true
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: OpacityMask {
|
layer.effect: OpacityMask {
|
||||||
|
|
Loading…
Reference in New Issue