import QtQuick 2.11

Rectangle {
    id: page1
    signal message(string msg)
    width: 300
    height: 300
    color: "red"

    MouseArea {
        anchors.fill: parent
        onClicked: myItem.message("clicked!");
    }

    /*
    function show(){
        animationShow.running = true
    }

    function exit(){
        //BreatheTestJs.exit = true
        animationExit.running = true
        //startStopButton.running = false
        //stopTimer.start()
    }

    //加载任务动画效果
    NumberAnimation {
        id: animationShow
        target: page
        property: "x"
        from: page.x
        to: 0
        duration: 50
    }

    NumberAnimation {
        id: animationExit
        target: page
        property: "x"
        from: page.x
        to: 1024
        duration: 50
    }

    */
}
