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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/******************************************************************
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.此软件为天气软件可从网上获取天气注意开发板需要联网联网后需要在天气页面手动下拉刷新获取天气信息第一屏获取近5天的天气数据程序1小时自动更新一次天气数据第二屏则是最高温与最低温的折线图左右滑动可切换一二屏。
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 {}
}
}
}