aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Kozlov <AnKozlov@luxoft.com>2018-03-28 16:30:14 +0200
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2018-03-28 17:11:42 +0000
commit5946d7542f8dd2659d1e4158f30b36f312881343 (patch)
tree28c492e47fd66e2332c7508ab175d716729f1f51
parent49135fa33d5ea1ed57243545023001d67034b363 (diff)
[calendar] Fix warnings in the calendar widget
- Weather related properties in The Calendar app have default values to avoid warnings before weather data is generated. Task-number: AUTOSUITE-247 Change-Id: I9f124a73d7cafbf4a0ebc76aab6be54e3f3cbc94 Reviewed-by: Daniel d'Andrada <daniel.dandrada@luxoft.com> Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--apps/com.pelagicore.calendar/panels/CalendarWidgetPanel.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/com.pelagicore.calendar/panels/CalendarWidgetPanel.qml b/apps/com.pelagicore.calendar/panels/CalendarWidgetPanel.qml
index cc173f9e..53af10ae 100644
--- a/apps/com.pelagicore.calendar/panels/CalendarWidgetPanel.qml
+++ b/apps/com.pelagicore.calendar/panels/CalendarWidgetPanel.qml
@@ -40,11 +40,11 @@ import com.pelagicore.styles.neptune 3.0
Item {
id: root
- property string precipitationIcon
+ property string precipitationIcon: ""
property string precipitationText: "0 - 2 mm"
- property string weatherName
- property string weatherIcon
- property int temp
+ property string weatherName: QT_TR_NOOP("Sunny")
+ property string weatherIcon: "ic-weather-sun"
+ property int temp: 30
property date currentTime: new Date()
property ListModel eventModel