Compare commits
2 Commits
ad79480345
...
531bffdf1a
Author | SHA1 | Date |
---|---|---|
|
531bffdf1a | |
|
db47a75f6b |
|
@ -28,6 +28,7 @@ FluScrollablePage{
|
|||
fillMode:Image.PreserveAspectCrop
|
||||
anchors.fill: parent
|
||||
verticalAlignment: Qt.AlignTop
|
||||
sourceSize: Qt.size(960,640)
|
||||
source: "qrc:/example/res/image/bg_home_header.png"
|
||||
}
|
||||
Rectangle{
|
||||
|
|
|
@ -29,6 +29,7 @@ FluScrollablePage{
|
|||
anchors.fill: parent
|
||||
asynchronous: true
|
||||
verticalAlignment: Qt.AlignTop
|
||||
sourceSize: Qt.size(960,640)
|
||||
source: "qrc:/example/res/image/bg_home_header.png"
|
||||
}
|
||||
Rectangle{
|
||||
|
|
|
@ -8,7 +8,7 @@ Button {
|
|||
property string contentDescription: ""
|
||||
QtObject{
|
||||
id:d
|
||||
property bool checked: rect_back.height === background.height
|
||||
property bool checked: rect_back.height == background.height
|
||||
}
|
||||
property color normalColor: {
|
||||
if(d.checked){
|
||||
|
|
|
@ -69,6 +69,8 @@ Window {
|
|||
id:popup_loading
|
||||
modal:true
|
||||
focus: true
|
||||
width: window.width
|
||||
height: window.height
|
||||
anchors.centerIn: Overlay.overlay
|
||||
closePolicy: {
|
||||
if(cancel){
|
||||
|
@ -76,17 +78,38 @@ Window {
|
|||
}
|
||||
return Popup.NoAutoClose
|
||||
}
|
||||
Overlay.modal: Rectangle {
|
||||
color: "#44000000"
|
||||
}
|
||||
Overlay.modal: Item {}
|
||||
onVisibleChanged: {
|
||||
if(!visible){
|
||||
loader_loading.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
padding: 0
|
||||
opacity: 0
|
||||
visible:true
|
||||
background: Item{}
|
||||
Behavior on opacity {
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
duration: 88
|
||||
}
|
||||
NumberAnimation{
|
||||
duration: 167
|
||||
}
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
opacity = 1
|
||||
}
|
||||
background: Rectangle{
|
||||
color:"#44000000"
|
||||
}
|
||||
contentItem: Item{
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
popup_loading.visible = false
|
||||
}
|
||||
}
|
||||
ColumnLayout{
|
||||
spacing: 8
|
||||
anchors.centerIn: parent
|
||||
|
|
|
@ -9,7 +9,7 @@ Button {
|
|||
property string contentDescription: ""
|
||||
QtObject{
|
||||
id:d
|
||||
property bool checked: rect_back.height === background.height
|
||||
property bool checked: rect_back.height == background.height
|
||||
}
|
||||
property color normalColor: {
|
||||
if(d.checked){
|
||||
|
|
|
@ -68,6 +68,8 @@ Window {
|
|||
id:popup_loading
|
||||
modal:true
|
||||
focus: true
|
||||
width: window.width
|
||||
height: window.height
|
||||
anchors.centerIn: Overlay.overlay
|
||||
closePolicy: {
|
||||
if(cancel){
|
||||
|
@ -75,17 +77,38 @@ Window {
|
|||
}
|
||||
return Popup.NoAutoClose
|
||||
}
|
||||
Overlay.modal: Rectangle {
|
||||
color: "#44000000"
|
||||
}
|
||||
Overlay.modal: Item {}
|
||||
onVisibleChanged: {
|
||||
if(!visible){
|
||||
loader_loading.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
padding: 0
|
||||
opacity: 0
|
||||
visible:true
|
||||
background: Item{}
|
||||
Behavior on opacity {
|
||||
SequentialAnimation {
|
||||
PauseAnimation {
|
||||
duration: 88
|
||||
}
|
||||
NumberAnimation{
|
||||
duration: 167
|
||||
}
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
opacity = 1
|
||||
}
|
||||
background: Rectangle{
|
||||
color:"#44000000"
|
||||
}
|
||||
contentItem: Item{
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
popup_loading.visible = false
|
||||
}
|
||||
}
|
||||
ColumnLayout{
|
||||
spacing: 8
|
||||
anchors.centerIn: parent
|
||||
|
|
Loading…
Reference in New Issue