You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.2 KiB

6 months ago
/******************************************************************
Copyright © Deng Zhimao Co., Ltd. 1990-2030. All rights reserved.
* @projectName weather
* @brief Weather.qml
* @author Deng Zhimao
* @email 1252699831@qq.com
* @date 2020-07-31
*******************************************************************/
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Window 2.3
import QtCharts 2.2
import an.weather 1.0
import an.model 1.0
import "../helpbutton"
Item {
id: weather
visible: false
HelpMessages {
anchors.fill: parent
z: 105
appIcon: WINStyle ? "" : "qrc:/desktop/androidstyleicons/weather.png"
appName: "天气"
appVersion: "Version 1.0.1"
subtoolText: "1.51线
2."
versionText: "1.【Version 1.0.0 2020-10-06】。\n初始版本\n2.【Version 1.0.1 2020-12-09】。\n添加不能获取定位的说明"
}
onVisibleChanged: {
formState.state == 'right' ? formState.state = '' : formState.state = 'right'
}
Component.onCompleted: {
weather.x = parent.width
}
Item {
id: formState
states: State {
name: "right"
PropertyChanges {
target: weather
x: 0
}
}
transitions: Transition {
NumberAnimation {
property: "x"
easing.type: Easing.InOutQuart
duration: 500
}
}
}
Rectangle {
anchors.fill: parent
color: "transparent"
SwipeView {
id: weatherSwipeView
interactive: smallScreen ? false : true
anchors.fill: parent
//currentIndex: tabBar.currentIndex
WeatherPage1 {}
WeatherPage2 {}
}
}
}