Merge lp:~renatofilho/ubuntu-calendar-app/optimize-page-load into lp:ubuntu-calendar-app
- optimize-page-load
- Merge into trunk
Proposed by
Renato Araujo Oliveira Filho
Status: | Superseded |
---|---|
Proposed branch: | lp:~renatofilho/ubuntu-calendar-app/optimize-page-load |
Merge into: | lp:ubuntu-calendar-app |
Prerequisite: | lp:~popey/ubuntu-calendar-app/Uitk1_3_and_font_fix |
Diff against target: |
1019 lines (+228/-163) 48 files modified
AgendaView.qml (+1/-1) AllDayEventComponent.qml (+1/-1) CalendarChoicePopup.qml (+1/-1) CalendarListButtonDelegate.qml (+1/-1) ColorPickerDialog.qml (+1/-1) ContactChoicePopup.qml (+1/-1) DayHeaderBackground.qml (+1/-1) DayView.qml (+1/-1) Defines.js (+1/-1) DeleteConfirmationDialog.qml (+1/-1) EditEventConfirmationDialog.qml (+1/-1) EventActions.qml (+1/-1) EventBubble.qml (+1/-1) EventDetails.qml (+2/-2) EventListModel.qml (+3/-3) EventReminder.qml (+1/-1) EventRepetition.qml (+1/-1) EventUtils.qml (+1/-1) HeaderDateComponent.qml (+1/-1) KeyboardRectangle.qml (+1/-1) LimitLabelModel.qml (+1/-1) MonthComponent.qml (+1/-1) MonthComponentDateDelegate.qml (+1/-1) MonthView.qml (+1/-1) NewEvent.qml (+1/-1) NewEventEntryField.qml (+1/-1) NewEventTimePicker.qml (+1/-1) OnlineAccountsHelper.qml (+1/-1) PathViewBase.qml (+1/-1) RecurrenceLabelDefines.qml (+1/-1) RemindersModel.qml (+1/-1) ScrollAnimation.qml (+1/-1) Scroller.qml (+1/-1) Settings.qml (+2/-2) SimpleDivider.qml (+1/-1) TimeLineBackground.qml (+1/-1) TimeLineBase.qml (+1/-1) TimeLineBaseComponent.qml (+1/-2) TimeLineHeader.qml (+2/-3) TimeLineHeaderComponent.qml (+1/-1) TimeLineTimeScale.qml (+1/-1) TimeSeparator.qml (+1/-1) ViewHeader.qml (+1/-1) WeekView.qml (+1/-1) YearView.qml (+1/-1) YearViewDelegate.qml (+1/-1) calendar.qml (+176/-109) calendarTests.qml (+1/-1) |
To merge this branch: | bzr merge lp:~renatofilho/ubuntu-calendar-app/optimize-page-load |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jenkins Bot | continuous-integration | Needs Fixing | |
Ubuntu Calendar Developers | Pending | ||
Review via email: mp+284451@code.launchpad.net |
Commit message
Simplify Tab loading, declaring individual components for each tab.
Make sure that year view is not loaded on app startup without request.
Description of the change
To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote : | # |
review:
Needs Fixing
(continuous-integration)
- 752. By Renato Araujo Oliveira Filho
-
Merged: ~renatofilho/
ubuntu- calendar- app/sdk- 1-3 - 753. By Renato Araujo Oliveira Filho
- 754. By Renato Araujo Oliveira Filho
-
Merged. ~renatofilho/
ubuntu- calendar- app/sdk- 1-3/ - 755. By Renato Araujo Oliveira Filho
-
Parent branch merged.
- 756. By Renato Araujo Oliveira Filho
-
Parent merged:
- 757. By Renato Araujo Oliveira Filho
-
Parent merged.
Unmerged revisions
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'AgendaView.qml' | |||
2 | --- AgendaView.qml 2016-01-29 14:35:31 +0000 | |||
3 | +++ AgendaView.qml 2016-01-29 14:35:31 +0000 | |||
4 | @@ -16,7 +16,7 @@ | |||
5 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
6 | 17 | */ | 17 | */ |
7 | 18 | 18 | ||
9 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
10 | 20 | import QtOrganizer 5.0 | 20 | import QtOrganizer 5.0 |
11 | 21 | import Ubuntu.Components 1.3 | 21 | import Ubuntu.Components 1.3 |
12 | 22 | import Ubuntu.Components.ListItems 1.0 as ListItem | 22 | import Ubuntu.Components.ListItems 1.0 as ListItem |
13 | 23 | 23 | ||
14 | === modified file 'AllDayEventComponent.qml' | |||
15 | --- AllDayEventComponent.qml 2016-01-29 14:35:31 +0000 | |||
16 | +++ AllDayEventComponent.qml 2016-01-29 14:35:31 +0000 | |||
17 | @@ -15,7 +15,7 @@ | |||
18 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
19 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 | 17 | */ | 17 | */ |
22 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
23 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
24 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
25 | 21 | import QtOrganizer 5.0 | 21 | import QtOrganizer 5.0 |
26 | 22 | 22 | ||
27 | === modified file 'CalendarChoicePopup.qml' | |||
28 | --- CalendarChoicePopup.qml 2016-01-29 14:35:31 +0000 | |||
29 | +++ CalendarChoicePopup.qml 2016-01-29 14:35:31 +0000 | |||
30 | @@ -15,7 +15,7 @@ | |||
31 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
32 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
33 | 17 | */ | 17 | */ |
35 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
36 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
37 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
38 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem |
39 | 22 | 22 | ||
40 | === modified file 'CalendarListButtonDelegate.qml' | |||
41 | --- CalendarListButtonDelegate.qml 2016-01-29 14:35:31 +0000 | |||
42 | +++ CalendarListButtonDelegate.qml 2016-01-29 14:35:31 +0000 | |||
43 | @@ -14,7 +14,7 @@ | |||
44 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
45 | 15 | */ | 15 | */ |
46 | 16 | 16 | ||
48 | 17 | import QtQuick 2.0 | 17 | import QtQuick 2.4 |
49 | 18 | import Ubuntu.Components 1.3 | 18 | import Ubuntu.Components 1.3 |
50 | 19 | import Ubuntu.Components.ListItems 1.0 as ListItem | 19 | import Ubuntu.Components.ListItems 1.0 as ListItem |
51 | 20 | 20 | ||
52 | 21 | 21 | ||
53 | === modified file 'ColorPickerDialog.qml' | |||
54 | --- ColorPickerDialog.qml 2016-01-29 14:35:31 +0000 | |||
55 | +++ ColorPickerDialog.qml 2016-01-29 14:35:31 +0000 | |||
56 | @@ -15,7 +15,7 @@ | |||
57 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
58 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
59 | 17 | */ | 17 | */ |
61 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
62 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
63 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
64 | 21 | 21 | ||
65 | 22 | 22 | ||
66 | === modified file 'ContactChoicePopup.qml' | |||
67 | --- ContactChoicePopup.qml 2016-01-29 14:35:31 +0000 | |||
68 | +++ ContactChoicePopup.qml 2016-01-29 14:35:31 +0000 | |||
69 | @@ -15,7 +15,7 @@ | |||
70 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
71 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
72 | 17 | */ | 17 | */ |
74 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
75 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
76 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
77 | 21 | import Ubuntu.Components.ListItems 1.0 | 21 | import Ubuntu.Components.ListItems 1.0 |
78 | 22 | 22 | ||
79 | === modified file 'DayHeaderBackground.qml' | |||
80 | --- DayHeaderBackground.qml 2014-09-20 10:45:35 +0000 | |||
81 | +++ DayHeaderBackground.qml 2016-01-29 14:35:31 +0000 | |||
82 | @@ -15,7 +15,7 @@ | |||
83 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
84 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
85 | 17 | */ | 17 | */ |
87 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
88 | 19 | 19 | ||
89 | 20 | Item { | 20 | Item { |
90 | 21 | width: parent.width | 21 | width: parent.width |
91 | 22 | 22 | ||
92 | === modified file 'DayView.qml' | |||
93 | --- DayView.qml 2016-01-29 14:35:31 +0000 | |||
94 | +++ DayView.qml 2016-01-29 14:35:31 +0000 | |||
95 | @@ -16,7 +16,7 @@ | |||
96 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
97 | 17 | */ | 17 | */ |
98 | 18 | 18 | ||
100 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
101 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
102 | 21 | import "dateExt.js" as DateExt | 21 | import "dateExt.js" as DateExt |
103 | 22 | import "ViewType.js" as ViewType | 22 | import "ViewType.js" as ViewType |
104 | 23 | 23 | ||
105 | === modified file 'Defines.js' | |||
106 | --- Defines.js 2016-01-29 14:35:31 +0000 | |||
107 | +++ Defines.js 2016-01-29 14:35:31 +0000 | |||
108 | @@ -43,7 +43,7 @@ | |||
109 | 43 | 43 | ||
110 | 44 | function getWeekLabels(){ | 44 | function getWeekLabels(){ |
111 | 45 | var object = Qt.createQmlObject('\ | 45 | var object = Qt.createQmlObject('\ |
113 | 46 | import QtQuick 2.3;\ | 46 | import QtQuick 2.4;\ |
114 | 47 | import Ubuntu.Components 1.3;\ | 47 | import Ubuntu.Components 1.3;\ |
115 | 48 | QtObject {\ | 48 | QtObject {\ |
116 | 49 | property var weekLabel:[Qt.locale().dayName(7,Locale.NarrowFormat),\ | 49 | property var weekLabel:[Qt.locale().dayName(7,Locale.NarrowFormat),\ |
117 | 50 | 50 | ||
118 | === modified file 'DeleteConfirmationDialog.qml' | |||
119 | --- DeleteConfirmationDialog.qml 2016-01-29 14:35:31 +0000 | |||
120 | +++ DeleteConfirmationDialog.qml 2016-01-29 14:35:31 +0000 | |||
121 | @@ -15,7 +15,7 @@ | |||
122 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
123 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
124 | 17 | */ | 17 | */ |
126 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
127 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
128 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
129 | 21 | 21 | ||
130 | 22 | 22 | ||
131 | === modified file 'EditEventConfirmationDialog.qml' | |||
132 | --- EditEventConfirmationDialog.qml 2016-01-29 14:35:31 +0000 | |||
133 | +++ EditEventConfirmationDialog.qml 2016-01-29 14:35:31 +0000 | |||
134 | @@ -15,7 +15,7 @@ | |||
135 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
136 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
137 | 17 | */ | 17 | */ |
139 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
140 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
141 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
142 | 21 | 21 | ||
143 | 22 | 22 | ||
144 | === modified file 'EventActions.qml' | |||
145 | --- EventActions.qml 2016-01-29 14:35:31 +0000 | |||
146 | +++ EventActions.qml 2016-01-29 14:35:31 +0000 | |||
147 | @@ -16,7 +16,7 @@ | |||
148 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
149 | 17 | */ | 17 | */ |
150 | 18 | 18 | ||
152 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
153 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
154 | 21 | import Ubuntu.SyncMonitor 0.1 | 21 | import Ubuntu.SyncMonitor 0.1 |
155 | 22 | 22 | ||
156 | 23 | 23 | ||
157 | === modified file 'EventBubble.qml' | |||
158 | --- EventBubble.qml 2016-01-29 14:35:31 +0000 | |||
159 | +++ EventBubble.qml 2016-01-29 14:35:31 +0000 | |||
160 | @@ -16,7 +16,7 @@ | |||
161 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
162 | 17 | */ | 17 | */ |
163 | 18 | 18 | ||
165 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
166 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
167 | 21 | import QtOrganizer 5.0 | 21 | import QtOrganizer 5.0 |
168 | 22 | 22 | ||
169 | 23 | 23 | ||
170 | === modified file 'EventDetails.qml' | |||
171 | --- EventDetails.qml 2016-01-29 14:35:31 +0000 | |||
172 | +++ EventDetails.qml 2016-01-29 14:35:31 +0000 | |||
173 | @@ -15,7 +15,7 @@ | |||
174 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
175 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
176 | 17 | */ | 17 | */ |
178 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
179 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
180 | 20 | import Ubuntu.Components.ListItems 1.0 as ListItem | 20 | import Ubuntu.Components.ListItems 1.0 as ListItem |
181 | 21 | import Ubuntu.Components.Themes.Ambiance 1.0 | 21 | import Ubuntu.Components.Themes.Ambiance 1.0 |
182 | @@ -209,7 +209,7 @@ | |||
183 | 209 | dialog.editEvent.connect( function(eventId){ | 209 | dialog.editEvent.connect( function(eventId){ |
184 | 210 | if( eventId === event.parentId ) { | 210 | if( eventId === event.parentId ) { |
185 | 211 | showEditEventPage(internal.parentEvent, model) | 211 | showEditEventPage(internal.parentEvent, model) |
187 | 212 | } else { | 212 | } else { |
188 | 213 | showEditEventPage(event, model) | 213 | showEditEventPage(event, model) |
189 | 214 | } | 214 | } |
190 | 215 | }); | 215 | }); |
191 | 216 | 216 | ||
192 | === modified file 'EventListModel.qml' | |||
193 | --- EventListModel.qml 2015-08-24 05:08:46 +0000 | |||
194 | +++ EventListModel.qml 2016-01-29 14:35:31 +0000 | |||
195 | @@ -15,7 +15,7 @@ | |||
196 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
197 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
198 | 17 | */ | 17 | */ |
200 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
201 | 19 | import QtOrganizer 5.0 | 19 | import QtOrganizer 5.0 |
202 | 20 | 20 | ||
203 | 21 | OrganizerModel { | 21 | OrganizerModel { |
204 | @@ -41,7 +41,7 @@ | |||
205 | 41 | } | 41 | } |
206 | 42 | 42 | ||
207 | 43 | function startLoadingTimer() { | 43 | function startLoadingTimer() { |
209 | 44 | var newObject = Qt.createQmlObject("import QtQuick 2.3; Timer {interval: 1000; running: true; repeat: false;}", | 44 | var newObject = Qt.createQmlObject("import QtQuick 2.4; Timer {interval: 1000; running: true; repeat: false;}", |
210 | 45 | eventModel, "EventListMode.qml"); | 45 | eventModel, "EventListMode.qml"); |
211 | 46 | newObject.onTriggered.connect( function(){ | 46 | newObject.onTriggered.connect( function(){ |
212 | 47 | var items = itemsByTimePeriod(eventModel.startPeriod, eventModel.endPeriod); | 47 | var items = itemsByTimePeriod(eventModel.startPeriod, eventModel.endPeriod); |
213 | @@ -73,7 +73,7 @@ | |||
214 | 73 | } | 73 | } |
215 | 74 | } | 74 | } |
216 | 75 | return cals; | 75 | return cals; |
218 | 76 | } | 76 | } |
219 | 77 | 77 | ||
220 | 78 | function getWritableCollections(){ | 78 | function getWritableCollections(){ |
221 | 79 | var cals = []; | 79 | var cals = []; |
222 | 80 | 80 | ||
223 | === modified file 'EventReminder.qml' | |||
224 | --- EventReminder.qml 2016-01-29 14:35:31 +0000 | |||
225 | +++ EventReminder.qml 2016-01-29 14:35:31 +0000 | |||
226 | @@ -16,7 +16,7 @@ | |||
227 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
228 | 17 | */ | 17 | */ |
229 | 18 | 18 | ||
231 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
232 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
233 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem |
234 | 22 | 22 | ||
235 | 23 | 23 | ||
236 | === modified file 'EventRepetition.qml' | |||
237 | --- EventRepetition.qml 2016-01-29 14:35:31 +0000 | |||
238 | +++ EventRepetition.qml 2016-01-29 14:35:31 +0000 | |||
239 | @@ -16,7 +16,7 @@ | |||
240 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
241 | 17 | */ | 17 | */ |
242 | 18 | 18 | ||
244 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
245 | 20 | import QtOrganizer 5.0 | 20 | import QtOrganizer 5.0 |
246 | 21 | import Ubuntu.Components 1.3 | 21 | import Ubuntu.Components 1.3 |
247 | 22 | import Ubuntu.Components.ListItems 1.0 as ListItem | 22 | import Ubuntu.Components.ListItems 1.0 as ListItem |
248 | 23 | 23 | ||
249 | === modified file 'EventUtils.qml' | |||
250 | --- EventUtils.qml 2016-01-29 14:35:31 +0000 | |||
251 | +++ EventUtils.qml 2016-01-29 14:35:31 +0000 | |||
252 | @@ -16,7 +16,7 @@ | |||
253 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
254 | 17 | */ | 17 | */ |
255 | 18 | 18 | ||
257 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
258 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
259 | 21 | import QtOrganizer 5.0 | 21 | import QtOrganizer 5.0 |
260 | 22 | import "Defines.js" as Defines | 22 | import "Defines.js" as Defines |
261 | 23 | 23 | ||
262 | === modified file 'HeaderDateComponent.qml' | |||
263 | --- HeaderDateComponent.qml 2016-01-29 14:35:31 +0000 | |||
264 | +++ HeaderDateComponent.qml 2016-01-29 14:35:31 +0000 | |||
265 | @@ -16,7 +16,7 @@ | |||
266 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
267 | 17 | */ | 17 | */ |
268 | 18 | 18 | ||
270 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
271 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
272 | 21 | 21 | ||
273 | 22 | Item { | 22 | Item { |
274 | 23 | 23 | ||
275 | === modified file 'KeyboardRectangle.qml' | |||
276 | --- KeyboardRectangle.qml 2014-09-20 10:45:35 +0000 | |||
277 | +++ KeyboardRectangle.qml 2016-01-29 14:35:31 +0000 | |||
278 | @@ -16,7 +16,7 @@ | |||
279 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
280 | 17 | */ | 17 | */ |
281 | 18 | 18 | ||
283 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
284 | 20 | 20 | ||
285 | 21 | Item { | 21 | Item { |
286 | 22 | id: keyboardRect | 22 | id: keyboardRect |
287 | 23 | 23 | ||
288 | === modified file 'LimitLabelModel.qml' | |||
289 | --- LimitLabelModel.qml 2014-10-22 17:32:15 +0000 | |||
290 | +++ LimitLabelModel.qml 2016-01-29 14:35:31 +0000 | |||
291 | @@ -15,7 +15,7 @@ | |||
292 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
293 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
294 | 17 | */ | 17 | */ |
296 | 18 | import QtQuick 2.3; | 18 | import QtQuick 2.4 |
297 | 19 | 19 | ||
298 | 20 | ListModel { | 20 | ListModel { |
299 | 21 | id:limitLables | 21 | id:limitLables |
300 | 22 | 22 | ||
301 | === modified file 'MonthComponent.qml' | |||
302 | --- MonthComponent.qml 2016-01-29 14:35:31 +0000 | |||
303 | +++ MonthComponent.qml 2016-01-29 14:35:31 +0000 | |||
304 | @@ -15,7 +15,7 @@ | |||
305 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
306 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
307 | 17 | */ | 17 | */ |
309 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
310 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
311 | 20 | import "dateExt.js" as DateExt | 20 | import "dateExt.js" as DateExt |
312 | 21 | import "colorUtils.js" as Color | 21 | import "colorUtils.js" as Color |
313 | 22 | 22 | ||
314 | === modified file 'MonthComponentDateDelegate.qml' | |||
315 | --- MonthComponentDateDelegate.qml 2016-01-29 14:35:31 +0000 | |||
316 | +++ MonthComponentDateDelegate.qml 2016-01-29 14:35:31 +0000 | |||
317 | @@ -1,4 +1,4 @@ | |||
319 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
320 | 2 | import Ubuntu.Components 1.3 | 2 | import Ubuntu.Components 1.3 |
321 | 3 | 3 | ||
322 | 4 | Item{ | 4 | Item{ |
323 | 5 | 5 | ||
324 | === modified file 'MonthView.qml' | |||
325 | --- MonthView.qml 2016-01-29 14:35:31 +0000 | |||
326 | +++ MonthView.qml 2016-01-29 14:35:31 +0000 | |||
327 | @@ -15,7 +15,7 @@ | |||
328 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
329 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
330 | 17 | */ | 17 | */ |
332 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
333 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
334 | 20 | import "dateExt.js" as DateExt | 20 | import "dateExt.js" as DateExt |
335 | 21 | import "colorUtils.js" as Color | 21 | import "colorUtils.js" as Color |
336 | 22 | 22 | ||
337 | === modified file 'NewEvent.qml' | |||
338 | --- NewEvent.qml 2016-01-29 14:35:31 +0000 | |||
339 | +++ NewEvent.qml 2016-01-29 14:35:31 +0000 | |||
340 | @@ -16,7 +16,7 @@ | |||
341 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
342 | 17 | */ | 17 | */ |
343 | 18 | 18 | ||
345 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
346 | 20 | import QtOrganizer 5.0 | 20 | import QtOrganizer 5.0 |
347 | 21 | import Ubuntu.Components 1.3 | 21 | import Ubuntu.Components 1.3 |
348 | 22 | import Ubuntu.Components.Popups 1.0 | 22 | import Ubuntu.Components.Popups 1.0 |
349 | 23 | 23 | ||
350 | === modified file 'NewEventEntryField.qml' | |||
351 | --- NewEventEntryField.qml 2016-01-29 14:35:31 +0000 | |||
352 | +++ NewEventEntryField.qml 2016-01-29 14:35:31 +0000 | |||
353 | @@ -16,7 +16,7 @@ | |||
354 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
355 | 17 | */ | 17 | */ |
356 | 18 | 18 | ||
358 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
359 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
360 | 21 | 21 | ||
361 | 22 | Label { | 22 | Label { |
362 | 23 | 23 | ||
363 | === modified file 'NewEventTimePicker.qml' | |||
364 | --- NewEventTimePicker.qml 2014-10-21 18:58:31 +0000 | |||
365 | +++ NewEventTimePicker.qml 2016-01-29 14:35:31 +0000 | |||
366 | @@ -1,4 +1,4 @@ | |||
368 | 1 | import QtQuick 2.3 | 1 | import QtQuick 2.4 |
369 | 2 | import Ubuntu.Components.ListItems 1.0 as ListItem | 2 | import Ubuntu.Components.ListItems 1.0 as ListItem |
370 | 3 | import Ubuntu.Components.Themes.Ambiance 1.0 | 3 | import Ubuntu.Components.Themes.Ambiance 1.0 |
371 | 4 | import Ubuntu.Components.Pickers 1.0 | 4 | import Ubuntu.Components.Pickers 1.0 |
372 | 5 | 5 | ||
373 | === modified file 'OnlineAccountsHelper.qml' | |||
374 | --- OnlineAccountsHelper.qml 2016-01-29 14:35:31 +0000 | |||
375 | +++ OnlineAccountsHelper.qml 2016-01-29 14:35:31 +0000 | |||
376 | @@ -14,7 +14,7 @@ | |||
377 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
378 | 15 | */ | 15 | */ |
379 | 16 | 16 | ||
381 | 17 | import QtQuick 2.2 | 17 | import QtQuick 2.4 |
382 | 18 | import Ubuntu.Components 1.3 | 18 | import Ubuntu.Components 1.3 |
383 | 19 | import Ubuntu.OnlineAccounts 0.1 | 19 | import Ubuntu.OnlineAccounts 0.1 |
384 | 20 | import Ubuntu.OnlineAccounts.Client 0.1 | 20 | import Ubuntu.OnlineAccounts.Client 0.1 |
385 | 21 | 21 | ||
386 | === modified file 'PathViewBase.qml' | |||
387 | --- PathViewBase.qml 2015-08-29 08:59:47 +0000 | |||
388 | +++ PathViewBase.qml 2016-01-29 14:35:31 +0000 | |||
389 | @@ -15,7 +15,7 @@ | |||
390 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
391 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
392 | 17 | */ | 17 | */ |
394 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
395 | 19 | 19 | ||
396 | 20 | PathView { | 20 | PathView { |
397 | 21 | id: root | 21 | id: root |
398 | 22 | 22 | ||
399 | === modified file 'RecurrenceLabelDefines.qml' | |||
400 | --- RecurrenceLabelDefines.qml 2016-01-29 14:35:31 +0000 | |||
401 | +++ RecurrenceLabelDefines.qml 2016-01-29 14:35:31 +0000 | |||
402 | @@ -16,7 +16,7 @@ | |||
403 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
404 | 17 | */ | 17 | */ |
405 | 18 | 18 | ||
407 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
408 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
409 | 21 | 21 | ||
410 | 22 | QtObject { | 22 | QtObject { |
411 | 23 | 23 | ||
412 | === modified file 'RemindersModel.qml' | |||
413 | --- RemindersModel.qml 2014-10-17 05:42:34 +0000 | |||
414 | +++ RemindersModel.qml 2016-01-29 14:35:31 +0000 | |||
415 | @@ -16,7 +16,7 @@ | |||
416 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
417 | 17 | */ | 17 | */ |
418 | 18 | 18 | ||
420 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
421 | 20 | 20 | ||
422 | 21 | ListModel { | 21 | ListModel { |
423 | 22 | id: reminderModel | 22 | id: reminderModel |
424 | 23 | 23 | ||
425 | === modified file 'ScrollAnimation.qml' | |||
426 | --- ScrollAnimation.qml 2014-09-20 10:45:35 +0000 | |||
427 | +++ ScrollAnimation.qml 2016-01-29 14:35:31 +0000 | |||
428 | @@ -1,4 +1,4 @@ | |||
430 | 1 | import QtQuick 2.3 | 1 | import QtQuick 2.4 |
431 | 2 | 2 | ||
432 | 3 | PropertyAnimation { | 3 | PropertyAnimation { |
433 | 4 | duration: 500 | 4 | duration: 500 |
434 | 5 | 5 | ||
435 | === modified file 'Scroller.qml' | |||
436 | --- Scroller.qml 2016-01-29 14:35:31 +0000 | |||
437 | +++ Scroller.qml 2016-01-29 14:35:31 +0000 | |||
438 | @@ -16,7 +16,7 @@ | |||
439 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
440 | 17 | */ | 17 | */ |
441 | 18 | 18 | ||
443 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
444 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
445 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItems | 21 | import Ubuntu.Components.ListItems 1.0 as ListItems |
446 | 22 | 22 | ||
447 | 23 | 23 | ||
448 | === modified file 'Settings.qml' | |||
449 | --- Settings.qml 2016-01-29 14:35:31 +0000 | |||
450 | +++ Settings.qml 2016-01-29 14:35:31 +0000 | |||
451 | @@ -15,7 +15,7 @@ | |||
452 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
453 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
454 | 17 | */ | 17 | */ |
456 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
457 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
458 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
459 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem |
460 | @@ -27,7 +27,7 @@ | |||
461 | 27 | visible: false | 27 | visible: false |
462 | 28 | 28 | ||
463 | 29 | head { | 29 | head { |
465 | 30 | title: i18n.tr("Settings") | 30 | title: i18n.tr("Settings") |
466 | 31 | backAction: Action { | 31 | backAction: Action { |
467 | 32 | text: i18n.tr("Back") | 32 | text: i18n.tr("Back") |
468 | 33 | iconName: "back" | 33 | iconName: "back" |
469 | 34 | 34 | ||
470 | === modified file 'SimpleDivider.qml' | |||
471 | --- SimpleDivider.qml 2014-12-11 20:29:27 +0000 | |||
472 | +++ SimpleDivider.qml 2016-01-29 14:35:31 +0000 | |||
473 | @@ -16,7 +16,7 @@ | |||
474 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
475 | 17 | */ | 17 | */ |
476 | 18 | 18 | ||
478 | 19 | import QtQuick 2.0 | 19 | import QtQuick 2.4 |
479 | 20 | 20 | ||
480 | 21 | Rectangle{ | 21 | Rectangle{ |
481 | 22 | height: units.gu(0.1) | 22 | height: units.gu(0.1) |
482 | 23 | 23 | ||
483 | === modified file 'TimeLineBackground.qml' | |||
484 | --- TimeLineBackground.qml 2016-01-29 14:35:31 +0000 | |||
485 | +++ TimeLineBackground.qml 2016-01-29 14:35:31 +0000 | |||
486 | @@ -16,7 +16,7 @@ | |||
487 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
488 | 17 | */ | 17 | */ |
489 | 18 | 18 | ||
491 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
492 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
493 | 21 | 21 | ||
494 | 22 | Column { | 22 | Column { |
495 | 23 | 23 | ||
496 | === modified file 'TimeLineBase.qml' | |||
497 | --- TimeLineBase.qml 2016-01-29 14:35:31 +0000 | |||
498 | +++ TimeLineBase.qml 2016-01-29 14:35:31 +0000 | |||
499 | @@ -15,7 +15,7 @@ | |||
500 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
501 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
502 | 17 | */ | 17 | */ |
504 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
505 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
506 | 20 | import QtOrganizer 5.0 | 20 | import QtOrganizer 5.0 |
507 | 21 | 21 | ||
508 | 22 | 22 | ||
509 | === modified file 'TimeLineBaseComponent.qml' | |||
510 | --- TimeLineBaseComponent.qml 2016-01-29 14:35:31 +0000 | |||
511 | +++ TimeLineBaseComponent.qml 2016-01-29 14:35:31 +0000 | |||
512 | @@ -16,8 +16,7 @@ | |||
513 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
514 | 17 | */ | 17 | */ |
515 | 18 | 18 | ||
518 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
517 | 20 | import QtQuick.Layouts 1.1 | ||
519 | 21 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
520 | 22 | import Ubuntu.Components.Popups 1.0 | 21 | import Ubuntu.Components.Popups 1.0 |
521 | 23 | import QtOrganizer 5.0 | 22 | import QtOrganizer 5.0 |
522 | 24 | 23 | ||
523 | === modified file 'TimeLineHeader.qml' | |||
524 | --- TimeLineHeader.qml 2016-01-29 14:35:31 +0000 | |||
525 | +++ TimeLineHeader.qml 2016-01-29 14:35:31 +0000 | |||
526 | @@ -16,9 +16,8 @@ | |||
527 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
528 | 17 | */ | 17 | */ |
529 | 18 | 18 | ||
531 | 19 | import QtQuick 2.0 | 19 | import QtQuick 2.4 |
532 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
533 | 21 | import QtQuick.Layouts 1.1 | ||
534 | 22 | 21 | ||
535 | 23 | import "ViewType.js" as ViewType | 22 | import "ViewType.js" as ViewType |
536 | 24 | 23 | ||
537 | @@ -50,7 +49,7 @@ | |||
538 | 50 | id: weekNumLabel | 49 | id: weekNumLabel |
539 | 51 | objectName: "weeknumber" | 50 | objectName: "weeknumber" |
540 | 52 | 51 | ||
542 | 53 | // TRANSLATORS: W refers to Week, followed by the actual week number (%1) | 52 | // TRANSLATORS: W refers to Week, followed by the actual week number (%1) |
543 | 54 | text: i18n.tr("W%1").arg(startDay.weekNumber(Qt.locale().firstDayOfWeek)) | 53 | text: i18n.tr("W%1").arg(startDay.weekNumber(Qt.locale().firstDayOfWeek)) |
544 | 55 | fontSize: "small" | 54 | fontSize: "small" |
545 | 56 | height: units.gu(5) | 55 | height: units.gu(5) |
546 | 57 | 56 | ||
547 | === modified file 'TimeLineHeaderComponent.qml' | |||
548 | --- TimeLineHeaderComponent.qml 2016-01-29 14:35:31 +0000 | |||
549 | +++ TimeLineHeaderComponent.qml 2016-01-29 14:35:31 +0000 | |||
550 | @@ -16,7 +16,7 @@ | |||
551 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
552 | 17 | */ | 17 | */ |
553 | 18 | 18 | ||
555 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
556 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
557 | 21 | import "dateExt.js" as DateExt | 21 | import "dateExt.js" as DateExt |
558 | 22 | import "ViewType.js" as ViewType | 22 | import "ViewType.js" as ViewType |
559 | 23 | 23 | ||
560 | === modified file 'TimeLineTimeScale.qml' | |||
561 | --- TimeLineTimeScale.qml 2016-01-29 14:35:31 +0000 | |||
562 | +++ TimeLineTimeScale.qml 2016-01-29 14:35:31 +0000 | |||
563 | @@ -16,7 +16,7 @@ | |||
564 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
565 | 17 | */ | 17 | */ |
566 | 18 | 18 | ||
568 | 19 | import QtQuick 2.0 | 19 | import QtQuick 2.4 |
569 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
570 | 21 | 21 | ||
571 | 22 | Flickable{ | 22 | Flickable{ |
572 | 23 | 23 | ||
573 | === modified file 'TimeSeparator.qml' | |||
574 | --- TimeSeparator.qml 2014-09-20 10:45:35 +0000 | |||
575 | +++ TimeSeparator.qml 2016-01-29 14:35:31 +0000 | |||
576 | @@ -15,7 +15,7 @@ | |||
577 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
578 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
579 | 17 | */ | 17 | */ |
581 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
582 | 19 | 19 | ||
583 | 20 | Rectangle { | 20 | Rectangle { |
584 | 21 | id: separator | 21 | id: separator |
585 | 22 | 22 | ||
586 | === modified file 'ViewHeader.qml' | |||
587 | --- ViewHeader.qml 2016-01-29 14:35:31 +0000 | |||
588 | +++ ViewHeader.qml 2016-01-29 14:35:31 +0000 | |||
589 | @@ -15,7 +15,7 @@ | |||
590 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
591 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
592 | 17 | */ | 17 | */ |
594 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
595 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
596 | 20 | 20 | ||
597 | 21 | Item{ | 21 | Item{ |
598 | 22 | 22 | ||
599 | === modified file 'WeekView.qml' | |||
600 | --- WeekView.qml 2016-01-29 14:35:31 +0000 | |||
601 | +++ WeekView.qml 2016-01-29 14:35:31 +0000 | |||
602 | @@ -16,7 +16,7 @@ | |||
603 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
604 | 17 | */ | 17 | */ |
605 | 18 | 18 | ||
607 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
608 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
609 | 21 | import "dateExt.js" as DateExt | 21 | import "dateExt.js" as DateExt |
610 | 22 | import "ViewType.js" as ViewType | 22 | import "ViewType.js" as ViewType |
611 | 23 | 23 | ||
612 | === modified file 'YearView.qml' | |||
613 | --- YearView.qml 2016-01-29 14:35:31 +0000 | |||
614 | +++ YearView.qml 2016-01-29 14:35:31 +0000 | |||
615 | @@ -16,7 +16,7 @@ | |||
616 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
617 | 17 | */ | 17 | */ |
618 | 18 | 18 | ||
620 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.4 |
621 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
622 | 21 | 21 | ||
623 | 22 | import "dateExt.js" as DateExt | 22 | import "dateExt.js" as DateExt |
624 | 23 | 23 | ||
625 | === modified file 'YearViewDelegate.qml' | |||
626 | --- YearViewDelegate.qml 2016-01-29 14:35:31 +0000 | |||
627 | +++ YearViewDelegate.qml 2016-01-29 14:35:31 +0000 | |||
628 | @@ -1,4 +1,4 @@ | |||
630 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
631 | 2 | import Ubuntu.Components 1.3 | 2 | import Ubuntu.Components 1.3 |
632 | 3 | 3 | ||
633 | 4 | GridView{ | 4 | GridView{ |
634 | 5 | 5 | ||
635 | === modified file 'calendar.qml' | |||
636 | --- calendar.qml 2016-01-29 14:35:31 +0000 | |||
637 | +++ calendar.qml 2016-01-29 14:35:31 +0000 | |||
638 | @@ -15,7 +15,7 @@ | |||
639 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
640 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
641 | 17 | */ | 17 | */ |
643 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
644 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
645 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
646 | 21 | import QtOrganizer 5.0 | 21 | import QtOrganizer 5.0 |
647 | @@ -126,6 +126,7 @@ | |||
648 | 126 | } | 126 | } |
649 | 127 | } | 127 | } |
650 | 128 | 128 | ||
651 | 129 | // Load events after the app startup | ||
652 | 129 | Timer { | 130 | Timer { |
653 | 130 | id: applyFilterTimer | 131 | id: applyFilterTimer |
654 | 131 | interval: 200; running: false; repeat: false | 132 | interval: 200; running: false; repeat: false |
655 | @@ -157,6 +158,16 @@ | |||
656 | 157 | id: collectionFilter | 158 | id: collectionFilter |
657 | 158 | } | 159 | } |
658 | 159 | 160 | ||
659 | 161 | InvalidFilter { | ||
660 | 162 | id: invalidFilter | ||
661 | 163 | } | ||
662 | 164 | |||
663 | 165 | IntersectionFilter { | ||
664 | 166 | id: mainFilter | ||
665 | 167 | |||
666 | 168 | filters: [ collectionFilter, itemTypeFilter] | ||
667 | 169 | } | ||
668 | 170 | |||
669 | 160 | EventListModel{ | 171 | EventListModel{ |
670 | 161 | id: eventModel | 172 | id: eventModel |
671 | 162 | 173 | ||
672 | @@ -164,9 +175,7 @@ | |||
673 | 164 | startPeriod: tabs.currentDay | 175 | startPeriod: tabs.currentDay |
674 | 165 | endPeriod: tabs.currentDay | 176 | endPeriod: tabs.currentDay |
675 | 166 | 177 | ||
679 | 167 | filter: IntersectionFilter { | 178 | filter: invalidFilter |
677 | 168 | filters: [ collectionFilter, itemTypeFilter] | ||
678 | 169 | } | ||
680 | 170 | 179 | ||
681 | 171 | function delayedApplyFilter() { | 180 | function delayedApplyFilter() { |
682 | 172 | applyFilterTimer.restart(); | 181 | applyFilterTimer.restart(); |
683 | @@ -182,6 +191,7 @@ | |||
684 | 182 | } | 191 | } |
685 | 183 | } | 192 | } |
686 | 184 | collectionFilter.ids = collectionIds; | 193 | collectionFilter.ids = collectionIds; |
687 | 194 | filter = mainFilter | ||
688 | 185 | } | 195 | } |
689 | 186 | 196 | ||
690 | 187 | function showEventFromId(eventId) { | 197 | function showEventFromId(eventId) { |
691 | @@ -214,6 +224,7 @@ | |||
692 | 214 | id: tabs | 224 | id: tabs |
693 | 215 | Keys.forwardTo: [tabs.currentPage] | 225 | Keys.forwardTo: [tabs.currentPage] |
694 | 216 | 226 | ||
695 | 227 | property bool isReady: false | ||
696 | 217 | property var currentDay: DateExt.today(); | 228 | property var currentDay: DateExt.today(); |
697 | 218 | property var selectedDay; | 229 | property var selectedDay; |
698 | 219 | 230 | ||
699 | @@ -313,6 +324,7 @@ | |||
700 | 313 | else { | 324 | else { |
701 | 314 | tabs.selectedTabIndex = settings.defaultViewIndex; | 325 | tabs.selectedTabIndex = settings.defaultViewIndex; |
702 | 315 | } | 326 | } |
703 | 327 | tabs.isReady = true | ||
704 | 316 | } // End of Component.onCompleted: | 328 | } // End of Component.onCompleted: |
705 | 317 | 329 | ||
706 | 318 | EventActions { | 330 | EventActions { |
707 | @@ -347,139 +359,194 @@ | |||
708 | 347 | } | 359 | } |
709 | 348 | } | 360 | } |
710 | 349 | 361 | ||
711 | 350 | onSelectedTabChanged: { | ||
712 | 351 | switch (tabs.selectedTab) { | ||
713 | 352 | case yearTab:{ | ||
714 | 353 | if (yearTab.page === null) { | ||
715 | 354 | var yearViewCom = Qt.createComponent("YearView.qml"); | ||
716 | 355 | if (yearViewCom.status === Component.Ready) { | ||
717 | 356 | var yearViewObj = yearViewCom.createObject(mainView); | ||
718 | 357 | |||
719 | 358 | yearViewObj.monthSelected.connect(function (date){ | ||
720 | 359 | var now = DateExt.today(); | ||
721 | 360 | if( date.getMonth() === now.getMonth() | ||
722 | 361 | && date.getFullYear() === now.getFullYear()) { | ||
723 | 362 | tabs.currentDay = now; | ||
724 | 363 | } else { | ||
725 | 364 | tabs.currentDay = date.midnight(); | ||
726 | 365 | } | ||
727 | 366 | tabs.selectedTabIndex = monthTab.index; | ||
728 | 367 | }) | ||
729 | 368 | |||
730 | 369 | yearTab.page = yearViewObj; | ||
731 | 370 | } | ||
732 | 371 | } else { | ||
733 | 372 | yearTab.page.refreshCurrentYear(DateExt.today().getFullYear()); | ||
734 | 373 | } | ||
735 | 374 | } break; | ||
736 | 375 | case monthTab: { | ||
737 | 376 | if (monthTab.page === null) { | ||
738 | 377 | var monthViewCom = Qt.createComponent("MonthView.qml"); | ||
739 | 378 | if (monthViewCom.status === Component.Ready) { | ||
740 | 379 | var monthViewObj = monthViewCom.createObject(mainView); | ||
741 | 380 | |||
742 | 381 | monthViewObj.dateSelected.connect(function (date) { | ||
743 | 382 | tabs.currentDay = date; | ||
744 | 383 | tabs.selectedTabIndex = dayTab.index; | ||
745 | 384 | }) | ||
746 | 385 | |||
747 | 386 | monthTab.page = monthViewObj; | ||
748 | 387 | } | ||
749 | 388 | } else { | ||
750 | 389 | monthTab.page.currentMonth = tabs.currentDay.midnight(); | ||
751 | 390 | } | ||
752 | 391 | } break; | ||
753 | 392 | case weekTab: { | ||
754 | 393 | if (weekTab.page === null) { | ||
755 | 394 | var weekViewCom = Qt.createComponent("WeekView.qml"); | ||
756 | 395 | if (weekViewCom.status === Component.Ready) { | ||
757 | 396 | var weekViewObj = weekViewCom.createObject(mainView); | ||
758 | 397 | |||
759 | 398 | weekViewObj.isCurrentPage = Qt.binding(function() { return tabs.selectedTab == weekTab }) | ||
760 | 399 | weekViewObj.onDayStartChanged.connect(function (){ | ||
761 | 400 | tabs.currentDay = weekViewObj.dayStart; | ||
762 | 401 | }); | ||
763 | 402 | weekViewObj.dateSelected.connect(function (date){ | ||
764 | 403 | tabs.currentDay = date; | ||
765 | 404 | tabs.selectedTabIndex = dayTab.index; | ||
766 | 405 | }); | ||
767 | 406 | |||
768 | 407 | weekTab.page = weekViewObj; | ||
769 | 408 | } | ||
770 | 409 | } else { | ||
771 | 410 | weekTab.page.dayStart = tabs.currentDay; | ||
772 | 411 | } | ||
773 | 412 | } break; | ||
774 | 413 | case dayTab: { | ||
775 | 414 | if (dayTab.page === null) { | ||
776 | 415 | var dayViewCom = Qt.createComponent("DayView.qml"); | ||
777 | 416 | if (dayViewCom.status === Component.Ready) { | ||
778 | 417 | var dayViewObj = dayViewCom.createObject(mainView); | ||
779 | 418 | |||
780 | 419 | dayViewObj.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == dayTab }) | ||
781 | 420 | dayViewObj.onCurrentDayChanged.connect(function (){ | ||
782 | 421 | tabs.currentDay = dayViewObj.currentDay; | ||
783 | 422 | }); | ||
784 | 423 | dayViewObj.dateSelected.connect(function (date) { | ||
785 | 424 | tabs.currentDay = date; | ||
786 | 425 | }); | ||
787 | 426 | |||
788 | 427 | dayTab.page =dayViewObj; | ||
789 | 428 | } | ||
790 | 429 | } else { | ||
791 | 430 | dayTab.page.currentDay = tabs.currentDay; | ||
792 | 431 | } | ||
793 | 432 | } break; | ||
794 | 433 | case agendaTab: { | ||
795 | 434 | var agendaViewCom = Qt.createComponent("AgendaView.qml"); | ||
796 | 435 | if (agendaViewCom.status === Component.Ready) { | ||
797 | 436 | var agendaViewObj = agendaViewCom.createObject(mainView); | ||
798 | 437 | |||
799 | 438 | agendaViewObj.dateSelected.connect(function (date){ | ||
800 | 439 | tabs.currentDay = date; | ||
801 | 440 | tabs.selectedTabIndex = dayTab.index; | ||
802 | 441 | }) | ||
803 | 442 | agendaTab.page = agendaViewObj; | ||
804 | 443 | } | ||
805 | 444 | } break; | ||
806 | 445 | default: | ||
807 | 446 | break; | ||
808 | 447 | } | ||
809 | 448 | } | ||
810 | 449 | |||
811 | 450 | Tab{ | 362 | Tab{ |
812 | 451 | id: yearTab | 363 | id: yearTab |
813 | 452 | objectName: "yearTab" | 364 | objectName: "yearTab" |
814 | 453 | title: i18n.tr("Year") | 365 | title: i18n.tr("Year") |
816 | 454 | page: null | 366 | |
817 | 367 | page: Loader { | ||
818 | 368 | id: yearViewLoader | ||
819 | 369 | |||
820 | 370 | asynchronous: true | ||
821 | 371 | sourceComponent: yearViewComp | ||
822 | 372 | active: false | ||
823 | 373 | // Load page on demand and keep it on memory until the application is closed | ||
824 | 374 | enabled: tabs.isReady && (tabs.selectedTab == yearTab) | ||
825 | 375 | onEnabledChanged: { | ||
826 | 376 | if (enabled && !active) { | ||
827 | 377 | active = true | ||
828 | 378 | } | ||
829 | 379 | } | ||
830 | 380 | } | ||
831 | 455 | } | 381 | } |
832 | 456 | 382 | ||
833 | 457 | Tab{ | 383 | Tab{ |
834 | 458 | id: monthTab | 384 | id: monthTab |
835 | 459 | objectName: "monthTab" | 385 | objectName: "monthTab" |
836 | 460 | title: i18n.tr("Month") | 386 | title: i18n.tr("Month") |
838 | 461 | page: null | 387 | |
839 | 388 | page: Loader { | ||
840 | 389 | id: monthTabLoader | ||
841 | 390 | |||
842 | 391 | asynchronous: true | ||
843 | 392 | sourceComponent: monthViewComp | ||
844 | 393 | active: false | ||
845 | 394 | // Load page on demand and keep it on memory until the application is closed | ||
846 | 395 | enabled: tabs.isReady && (tabs.selectedTab == monthTab) | ||
847 | 396 | onEnabledChanged: { | ||
848 | 397 | if (enabled && !active) { | ||
849 | 398 | active = true | ||
850 | 399 | } | ||
851 | 400 | } | ||
852 | 401 | } | ||
853 | 462 | } | 402 | } |
854 | 463 | 403 | ||
855 | 464 | Tab{ | 404 | Tab{ |
856 | 465 | id: weekTab | 405 | id: weekTab |
857 | 466 | objectName: "weekTab" | 406 | objectName: "weekTab" |
858 | 467 | title: i18n.tr("Week") | 407 | title: i18n.tr("Week") |
860 | 468 | page: null | 408 | |
861 | 409 | page: Loader { | ||
862 | 410 | id: weekTabLoader | ||
863 | 411 | |||
864 | 412 | asynchronous: true | ||
865 | 413 | sourceComponent: weekViewComp | ||
866 | 414 | active: false | ||
867 | 415 | // Load page on demand and keep it on memory until the application is closed | ||
868 | 416 | enabled: tabs.isReady && (tabs.selectedTab == weekTab) | ||
869 | 417 | onEnabledChanged: { | ||
870 | 418 | if (enabled && !active) { | ||
871 | 419 | active = true | ||
872 | 420 | } | ||
873 | 421 | } | ||
874 | 422 | } | ||
875 | 469 | } | 423 | } |
876 | 470 | 424 | ||
877 | 471 | Tab{ | 425 | Tab{ |
878 | 472 | id: dayTab | 426 | id: dayTab |
879 | 473 | objectName: "dayTab" | 427 | objectName: "dayTab" |
880 | 474 | title: i18n.tr("Day") | 428 | title: i18n.tr("Day") |
882 | 475 | page: null | 429 | |
883 | 430 | page:Loader { | ||
884 | 431 | id: dayTabLoader | ||
885 | 432 | |||
886 | 433 | asynchronous: true | ||
887 | 434 | sourceComponent: dayViewComp | ||
888 | 435 | active: false | ||
889 | 436 | // Load page on demand and keep it on memory until the application is closed | ||
890 | 437 | enabled: tabs.isReady && (tabs.selectedTab == dayTab) | ||
891 | 438 | onEnabledChanged: { | ||
892 | 439 | if (enabled && !active) { | ||
893 | 440 | active = true | ||
894 | 441 | } | ||
895 | 442 | } | ||
896 | 443 | } | ||
897 | 476 | } | 444 | } |
898 | 477 | 445 | ||
899 | 478 | Tab { | 446 | Tab { |
900 | 479 | id: agendaTab | 447 | id: agendaTab |
901 | 480 | objectName: "agendaTab" | 448 | objectName: "agendaTab" |
902 | 481 | title: i18n.tr("Agenda") | 449 | title: i18n.tr("Agenda") |
904 | 482 | page: null | 450 | |
905 | 451 | page: Loader { | ||
906 | 452 | id: agendaTabLoader | ||
907 | 453 | |||
908 | 454 | asynchronous: true | ||
909 | 455 | sourceComponent: agendaViewComp | ||
910 | 456 | active: false | ||
911 | 457 | // Load page on demand and keep it on memory until the application is closed | ||
912 | 458 | enabled: tabs.isReady && (tabs.selectedTab == agendaTab) | ||
913 | 459 | onEnabledChanged: { | ||
914 | 460 | if (enabled && !active) { | ||
915 | 461 | active = true | ||
916 | 462 | } | ||
917 | 463 | } | ||
918 | 464 | } | ||
919 | 465 | } | ||
920 | 466 | } | ||
921 | 467 | } | ||
922 | 468 | |||
923 | 469 | Component { | ||
924 | 470 | id: yearViewComp | ||
925 | 471 | |||
926 | 472 | YearView { | ||
927 | 473 | onMonthSelected: { | ||
928 | 474 | var now = DateExt.today(); | ||
929 | 475 | if ((date.getMonth() === now.getMonth()) && | ||
930 | 476 | (date.getFullYear() === now.getFullYear())) { | ||
931 | 477 | tabs.currentDay = now; | ||
932 | 478 | } else { | ||
933 | 479 | tabs.currentDay = date.midnight(); | ||
934 | 480 | } | ||
935 | 481 | tabs.selectedTabIndex = monthTab.index; | ||
936 | 482 | } | ||
937 | 483 | onActiveChanged: { | ||
938 | 484 | if (active) { | ||
939 | 485 | refreshCurrentYear(DateExt.today().getFullYear()) | ||
940 | 486 | } | ||
941 | 487 | } | ||
942 | 488 | } | ||
943 | 489 | } | ||
944 | 490 | |||
945 | 491 | Component { | ||
946 | 492 | id: monthViewComp | ||
947 | 493 | |||
948 | 494 | MonthView { | ||
949 | 495 | onDateSelected: { | ||
950 | 496 | tabs.currentDay = date; | ||
951 | 497 | tabs.selectedTabIndex = dayTab.index | ||
952 | 498 | } | ||
953 | 499 | onActiveChanged: { | ||
954 | 500 | if (active) | ||
955 | 501 | currentMonth = tabs.currentDay.midnight() | ||
956 | 502 | } | ||
957 | 503 | } | ||
958 | 504 | } | ||
959 | 505 | |||
960 | 506 | Component { | ||
961 | 507 | id: weekViewComp | ||
962 | 508 | |||
963 | 509 | WeekView { | ||
964 | 510 | onDayStartChanged: { | ||
965 | 511 | tabs.currentDay = dayStart | ||
966 | 512 | } | ||
967 | 513 | onDateSelected: { | ||
968 | 514 | tabs.currentDay = date; | ||
969 | 515 | tabs.selectedTabIndex = dayTab.index | ||
970 | 516 | } | ||
971 | 517 | onActiveChanged: { | ||
972 | 518 | if (active) | ||
973 | 519 | dayStart = tabs.currentDay | ||
974 | 520 | } | ||
975 | 521 | } | ||
976 | 522 | } | ||
977 | 523 | |||
978 | 524 | Component { | ||
979 | 525 | id: dayViewComp | ||
980 | 526 | |||
981 | 527 | DayView { | ||
982 | 528 | onCurrentDayChanged: { | ||
983 | 529 | tabs.currentDay = currentDay; | ||
984 | 530 | } | ||
985 | 531 | |||
986 | 532 | onDateSelected: { | ||
987 | 533 | tabs.currentDay = date | ||
988 | 534 | } | ||
989 | 535 | |||
990 | 536 | onActiveChanged: { | ||
991 | 537 | if (active) | ||
992 | 538 | currentDay = tabs.currentDay; | ||
993 | 539 | } | ||
994 | 540 | } | ||
995 | 541 | } | ||
996 | 542 | |||
997 | 543 | Component { | ||
998 | 544 | id: agendaViewComp | ||
999 | 545 | |||
1000 | 546 | AgendaView { | ||
1001 | 547 | onDateSelected: { | ||
1002 | 548 | tabs.currentDay = date; | ||
1003 | 549 | tabs.selectedTabIndex = dayTab.index | ||
1004 | 483 | } | 550 | } |
1005 | 484 | } | 551 | } |
1006 | 485 | } | 552 | } |
1007 | 486 | 553 | ||
1008 | === modified file 'calendarTests.qml' | |||
1009 | --- calendarTests.qml 2016-01-29 14:35:31 +0000 | |||
1010 | +++ calendarTests.qml 2016-01-29 14:35:31 +0000 | |||
1011 | @@ -15,7 +15,7 @@ | |||
1012 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
1013 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1014 | 17 | */ | 17 | */ |
1016 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.4 |
1017 | 19 | import Ubuntu.Components 1.3 | 19 | import Ubuntu.Components 1.3 |
1018 | 20 | 20 | ||
1019 | 21 | MainView { | 21 | MainView { |
FAILED: Continuous integration, rev:750 /core-apps- jenkins. ubuntu. com/job/ run-ap- tests-ci/ 207/ /core-apps- jenkins. ubuntu. com/job/ generic- update- mp/493/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /core-apps- jenkins. ubuntu. com/job/ run-ap- tests-ci/ 207/rebuild
https:/