2018-01-31 21:54:25 +01:00
|
|
|
import QtQuick 2.9
|
2018-02-12 15:35:08 +01:00
|
|
|
import net.aimber.screenplaysdk 1.0
|
2018-01-31 21:54:25 +01:00
|
|
|
|
|
|
|
Rectangle {
|
2018-02-12 15:35:08 +01:00
|
|
|
color: "gray"
|
2018-01-31 21:54:25 +01:00
|
|
|
anchors.fill: parent
|
2018-02-12 15:35:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
ScreenPlaySDK {
|
|
|
|
contentType: "wallpaper"
|
|
|
|
|
|
|
|
onIncommingMessageError: {
|
|
|
|
name.text = msg
|
|
|
|
}
|
|
|
|
|
|
|
|
onSdkConnected: {
|
|
|
|
name.text = "connected"
|
|
|
|
}
|
|
|
|
|
|
|
|
onSdkDisconnected: {
|
|
|
|
name.text = "disconnected"
|
|
|
|
mainwindow.destroyThis()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: name
|
|
|
|
text: qsTr("text")
|
|
|
|
anchors {
|
|
|
|
horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
y:-100
|
|
|
|
|
|
|
|
font.pixelSize: 36
|
|
|
|
SequentialAnimation {
|
|
|
|
loops: SequentialAnimation.Infinite
|
|
|
|
running: true
|
|
|
|
NumberAnimation {
|
|
|
|
target: name
|
|
|
|
property: "y"
|
|
|
|
duration: 2000
|
|
|
|
easing.type: Easing.InOutQuad
|
|
|
|
to:500
|
|
|
|
}
|
|
|
|
NumberAnimation {
|
|
|
|
target: name
|
|
|
|
property: "y"
|
|
|
|
duration: 2000
|
|
|
|
easing.type: Easing.InOutQuad
|
|
|
|
to:300
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-01-31 21:54:25 +01:00
|
|
|
}
|