##// END OF EJS Templates
Fancy background to QML Weather demo
Tero Ahola -
r1959:cd9047668198
parent child
Show More
@@ -24,6 +24,10 import QtCommercial.Chart 1.1
24 24 Rectangle {
25 25 width: 360
26 26 height: 360
27 gradient: Gradient {
28 GradientStop { position: 0.0; color: "lightblue" }
29 GradientStop { position: 1.0; color: "white" }
30 }
27 31
28 32 //![1]
29 33 ChartView {
@@ -157,7 +161,10 Rectangle {
157 161 //![4]
158 162
159 163 //![5]
160 // Store temperature values, rainfall and weather icon
164 // Store temperature values, rainfall and weather icon.
165 // The temperature values begin from 0.5 instead of 0.0 to make the start from the
166 // middle of the rainfall bars. This makes the temperature lines visually better
167 // synchronized with the rainfall bars.
161 168 maxTempSeries.append(Number(i) + 0.5, weatherObj.tempMaxC);
162 169 minTempSeries.append(Number(i) + 0.5, weatherObj.tempMinC);
163 170 rainfallSet.append(i, weatherObj.precipMM);
1 NO CONTENT: modified file, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now