This commit is contained in:
朱子楚\zhuzi 2023-05-13 17:56:26 +08:00
parent 8475ec7f03
commit 84e863f664
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,7 @@ Item {
property alias color: rect.color property alias color: rect.color
property alias acrylicOpacity: rect.opacity property alias acrylicOpacity: rect.opacity
property var sourceItem: control.parent
Rectangle { Rectangle {
id: rect id: rect
@ -18,7 +19,7 @@ Item {
ShaderEffectSource { ShaderEffectSource {
id: effect_source id: effect_source
anchors.fill: parent anchors.fill: parent
sourceItem: control.parent sourceItem: control.sourceItem
sourceRect: Qt.rect(control.x, control.y, control.width, control.height) sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
} }

View File

@ -22,10 +22,9 @@ Item {
Row{ Row{
id: content id: content
height: control.height height: control.height
spacing: 25 spacing: 10
padding: 10 padding: 10
FluToggleButton{ FluToggleButton{
visible: control.pageCount>1 visible: control.pageCount>1
disabled: control.pageCurrent<=1 disabled: control.pageCurrent<=1