Merge lp:~renatofilho/ubuntu-calendar-app/optimize-page-load into lp:ubuntu-calendar-app

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
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.

To post a comment you must log in.
751. By Renato Araujo Oliveira Filho

Merged: lp:~renatofilho/ubuntu-calendar-app/sdk-1-3

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

Merged: lp:~renatofilho/ubuntu-calendar-app/sdk-1-3

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
=== modified file 'AgendaView.qml'
--- AgendaView.qml 2016-01-29 14:35:31 +0000
+++ AgendaView.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import QtOrganizer 5.020import QtOrganizer 5.0
21import Ubuntu.Components 1.321import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.0 as ListItem22import Ubuntu.Components.ListItems 1.0 as ListItem
2323
=== modified file 'AllDayEventComponent.qml'
--- AllDayEventComponent.qml 2016-01-29 14:35:31 +0000
+++ AllDayEventComponent.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import QtOrganizer 5.021import QtOrganizer 5.0
2222
=== modified file 'CalendarChoicePopup.qml'
--- CalendarChoicePopup.qml 2016-01-29 14:35:31 +0000
+++ CalendarChoicePopup.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import Ubuntu.Components.ListItems 1.0 as ListItem21import Ubuntu.Components.ListItems 1.0 as ListItem
2222
=== modified file 'CalendarListButtonDelegate.qml'
--- CalendarListButtonDelegate.qml 2016-01-29 14:35:31 +0000
+++ CalendarListButtonDelegate.qml 2016-01-29 14:35:31 +0000
@@ -14,7 +14,7 @@
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/>.
15 */15 */
1616
17import QtQuick 2.017import QtQuick 2.4
18import Ubuntu.Components 1.318import Ubuntu.Components 1.3
19import Ubuntu.Components.ListItems 1.0 as ListItem19import Ubuntu.Components.ListItems 1.0 as ListItem
2020
2121
=== modified file 'ColorPickerDialog.qml'
--- ColorPickerDialog.qml 2016-01-29 14:35:31 +0000
+++ ColorPickerDialog.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
2222
=== modified file 'ContactChoicePopup.qml'
--- ContactChoicePopup.qml 2016-01-29 14:35:31 +0000
+++ ContactChoicePopup.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import Ubuntu.Components.ListItems 1.021import Ubuntu.Components.ListItems 1.0
2222
=== modified file 'DayHeaderBackground.qml'
--- DayHeaderBackground.qml 2014-09-20 10:45:35 +0000
+++ DayHeaderBackground.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
1919
20Item {20Item {
21 width: parent.width21 width: parent.width
2222
=== modified file 'DayView.qml'
--- DayView.qml 2016-01-29 14:35:31 +0000
+++ DayView.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import "dateExt.js" as DateExt21import "dateExt.js" as DateExt
22import "ViewType.js" as ViewType22import "ViewType.js" as ViewType
2323
=== modified file 'Defines.js'
--- Defines.js 2016-01-29 14:35:31 +0000
+++ Defines.js 2016-01-29 14:35:31 +0000
@@ -43,7 +43,7 @@
4343
44function getWeekLabels(){44function getWeekLabels(){
45 var object = Qt.createQmlObject('\45 var object = Qt.createQmlObject('\
46 import QtQuick 2.3;\46 import QtQuick 2.4;\
47 import Ubuntu.Components 1.3;\47 import Ubuntu.Components 1.3;\
48 QtObject {\48 QtObject {\
49 property var weekLabel:[Qt.locale().dayName(7,Locale.NarrowFormat),\49 property var weekLabel:[Qt.locale().dayName(7,Locale.NarrowFormat),\
5050
=== modified file 'DeleteConfirmationDialog.qml'
--- DeleteConfirmationDialog.qml 2016-01-29 14:35:31 +0000
+++ DeleteConfirmationDialog.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
2222
=== modified file 'EditEventConfirmationDialog.qml'
--- EditEventConfirmationDialog.qml 2016-01-29 14:35:31 +0000
+++ EditEventConfirmationDialog.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
2121
2222
=== modified file 'EventActions.qml'
--- EventActions.qml 2016-01-29 14:35:31 +0000
+++ EventActions.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import Ubuntu.SyncMonitor 0.121import Ubuntu.SyncMonitor 0.1
2222
2323
=== modified file 'EventBubble.qml'
--- EventBubble.qml 2016-01-29 14:35:31 +0000
+++ EventBubble.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import QtOrganizer 5.021import QtOrganizer 5.0
2222
2323
=== modified file 'EventDetails.qml'
--- EventDetails.qml 2016-01-29 14:35:31 +0000
+++ EventDetails.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.ListItems 1.0 as ListItem20import Ubuntu.Components.ListItems 1.0 as ListItem
21import Ubuntu.Components.Themes.Ambiance 1.021import Ubuntu.Components.Themes.Ambiance 1.0
@@ -209,7 +209,7 @@
209 dialog.editEvent.connect( function(eventId){209 dialog.editEvent.connect( function(eventId){
210 if( eventId === event.parentId ) {210 if( eventId === event.parentId ) {
211 showEditEventPage(internal.parentEvent, model)211 showEditEventPage(internal.parentEvent, model)
212 } else { 212 } else {
213 showEditEventPage(event, model)213 showEditEventPage(event, model)
214 }214 }
215 });215 });
216216
=== modified file 'EventListModel.qml'
--- EventListModel.qml 2015-08-24 05:08:46 +0000
+++ EventListModel.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import QtOrganizer 5.019import QtOrganizer 5.0
2020
21OrganizerModel {21OrganizerModel {
@@ -41,7 +41,7 @@
41 }41 }
4242
43 function startLoadingTimer() {43 function startLoadingTimer() {
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;}",
45 eventModel, "EventListMode.qml");45 eventModel, "EventListMode.qml");
46 newObject.onTriggered.connect( function(){46 newObject.onTriggered.connect( function(){
47 var items = itemsByTimePeriod(eventModel.startPeriod, eventModel.endPeriod);47 var items = itemsByTimePeriod(eventModel.startPeriod, eventModel.endPeriod);
@@ -73,7 +73,7 @@
73 }73 }
74 }74 }
75 return cals;75 return cals;
76 }76 }
7777
78 function getWritableCollections(){78 function getWritableCollections(){
79 var cals = [];79 var cals = [];
8080
=== modified file 'EventReminder.qml'
--- EventReminder.qml 2016-01-29 14:35:31 +0000
+++ EventReminder.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import Ubuntu.Components.ListItems 1.0 as ListItem21import Ubuntu.Components.ListItems 1.0 as ListItem
2222
2323
=== modified file 'EventRepetition.qml'
--- EventRepetition.qml 2016-01-29 14:35:31 +0000
+++ EventRepetition.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import QtOrganizer 5.020import QtOrganizer 5.0
21import Ubuntu.Components 1.321import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.0 as ListItem22import Ubuntu.Components.ListItems 1.0 as ListItem
2323
=== modified file 'EventUtils.qml'
--- EventUtils.qml 2016-01-29 14:35:31 +0000
+++ EventUtils.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import QtOrganizer 5.021import QtOrganizer 5.0
22import "Defines.js" as Defines22import "Defines.js" as Defines
2323
=== modified file 'HeaderDateComponent.qml'
--- HeaderDateComponent.qml 2016-01-29 14:35:31 +0000
+++ HeaderDateComponent.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22Item {22Item {
2323
=== modified file 'KeyboardRectangle.qml'
--- KeyboardRectangle.qml 2014-09-20 10:45:35 +0000
+++ KeyboardRectangle.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
2020
21Item {21Item {
22 id: keyboardRect22 id: keyboardRect
2323
=== modified file 'LimitLabelModel.qml'
--- LimitLabelModel.qml 2014-10-22 17:32:15 +0000
+++ LimitLabelModel.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.3;18import QtQuick 2.4
1919
20ListModel {20ListModel {
21 id:limitLables21 id:limitLables
2222
=== modified file 'MonthComponent.qml'
--- MonthComponent.qml 2016-01-29 14:35:31 +0000
+++ MonthComponent.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import "dateExt.js" as DateExt20import "dateExt.js" as DateExt
21import "colorUtils.js" as Color21import "colorUtils.js" as Color
2222
=== modified file 'MonthComponentDateDelegate.qml'
--- MonthComponentDateDelegate.qml 2016-01-29 14:35:31 +0000
+++ MonthComponentDateDelegate.qml 2016-01-29 14:35:31 +0000
@@ -1,4 +1,4 @@
1import QtQuick 2.01import QtQuick 2.4
2import Ubuntu.Components 1.32import Ubuntu.Components 1.3
33
4Item{4Item{
55
=== modified file 'MonthView.qml'
--- MonthView.qml 2016-01-29 14:35:31 +0000
+++ MonthView.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import "dateExt.js" as DateExt20import "dateExt.js" as DateExt
21import "colorUtils.js" as Color21import "colorUtils.js" as Color
2222
=== modified file 'NewEvent.qml'
--- NewEvent.qml 2016-01-29 14:35:31 +0000
+++ NewEvent.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import QtOrganizer 5.020import QtOrganizer 5.0
21import Ubuntu.Components 1.321import Ubuntu.Components 1.3
22import Ubuntu.Components.Popups 1.022import Ubuntu.Components.Popups 1.0
2323
=== modified file 'NewEventEntryField.qml'
--- NewEventEntryField.qml 2016-01-29 14:35:31 +0000
+++ NewEventEntryField.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22Label {22Label {
2323
=== modified file 'NewEventTimePicker.qml'
--- NewEventTimePicker.qml 2014-10-21 18:58:31 +0000
+++ NewEventTimePicker.qml 2016-01-29 14:35:31 +0000
@@ -1,4 +1,4 @@
1import QtQuick 2.31import QtQuick 2.4
2import Ubuntu.Components.ListItems 1.0 as ListItem2import Ubuntu.Components.ListItems 1.0 as ListItem
3import Ubuntu.Components.Themes.Ambiance 1.03import Ubuntu.Components.Themes.Ambiance 1.0
4import Ubuntu.Components.Pickers 1.04import Ubuntu.Components.Pickers 1.0
55
=== modified file 'OnlineAccountsHelper.qml'
--- OnlineAccountsHelper.qml 2016-01-29 14:35:31 +0000
+++ OnlineAccountsHelper.qml 2016-01-29 14:35:31 +0000
@@ -14,7 +14,7 @@
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/>.
15 */15 */
1616
17import QtQuick 2.217import QtQuick 2.4
18import Ubuntu.Components 1.318import Ubuntu.Components 1.3
19import Ubuntu.OnlineAccounts 0.119import Ubuntu.OnlineAccounts 0.1
20import Ubuntu.OnlineAccounts.Client 0.120import Ubuntu.OnlineAccounts.Client 0.1
2121
=== modified file 'PathViewBase.qml'
--- PathViewBase.qml 2015-08-29 08:59:47 +0000
+++ PathViewBase.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
1919
20PathView {20PathView {
21 id: root21 id: root
2222
=== modified file 'RecurrenceLabelDefines.qml'
--- RecurrenceLabelDefines.qml 2016-01-29 14:35:31 +0000
+++ RecurrenceLabelDefines.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22QtObject {22QtObject {
2323
=== modified file 'RemindersModel.qml'
--- RemindersModel.qml 2014-10-17 05:42:34 +0000
+++ RemindersModel.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
2020
21ListModel {21ListModel {
22 id: reminderModel22 id: reminderModel
2323
=== modified file 'ScrollAnimation.qml'
--- ScrollAnimation.qml 2014-09-20 10:45:35 +0000
+++ ScrollAnimation.qml 2016-01-29 14:35:31 +0000
@@ -1,4 +1,4 @@
1import QtQuick 2.31import QtQuick 2.4
22
3PropertyAnimation {3PropertyAnimation {
4 duration: 5004 duration: 500
55
=== modified file 'Scroller.qml'
--- Scroller.qml 2016-01-29 14:35:31 +0000
+++ Scroller.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import Ubuntu.Components.ListItems 1.0 as ListItems21import Ubuntu.Components.ListItems 1.0 as ListItems
2222
2323
=== modified file 'Settings.qml'
--- Settings.qml 2016-01-29 14:35:31 +0000
+++ Settings.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import Ubuntu.Components.ListItems 1.0 as ListItem21import Ubuntu.Components.ListItems 1.0 as ListItem
@@ -27,7 +27,7 @@
27 visible: false27 visible: false
2828
29 head {29 head {
30 title: i18n.tr("Settings")30 title: i18n.tr("Settings")
31 backAction: Action {31 backAction: Action {
32 text: i18n.tr("Back")32 text: i18n.tr("Back")
33 iconName: "back"33 iconName: "back"
3434
=== modified file 'SimpleDivider.qml'
--- SimpleDivider.qml 2014-12-11 20:29:27 +0000
+++ SimpleDivider.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.4
2020
21Rectangle{21Rectangle{
22 height: units.gu(0.1)22 height: units.gu(0.1)
2323
=== modified file 'TimeLineBackground.qml'
--- TimeLineBackground.qml 2016-01-29 14:35:31 +0000
+++ TimeLineBackground.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22Column {22Column {
2323
=== modified file 'TimeLineBase.qml'
--- TimeLineBase.qml 2016-01-29 14:35:31 +0000
+++ TimeLineBase.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import QtOrganizer 5.020import QtOrganizer 5.0
2121
2222
=== modified file 'TimeLineBaseComponent.qml'
--- TimeLineBaseComponent.qml 2016-01-29 14:35:31 +0000
+++ TimeLineBaseComponent.qml 2016-01-29 14:35:31 +0000
@@ -16,8 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import QtQuick.Layouts 1.1
21import Ubuntu.Components 1.320import Ubuntu.Components 1.3
22import Ubuntu.Components.Popups 1.021import Ubuntu.Components.Popups 1.0
23import QtOrganizer 5.022import QtOrganizer 5.0
2423
=== modified file 'TimeLineHeader.qml'
--- TimeLineHeader.qml 2016-01-29 14:35:31 +0000
+++ TimeLineHeader.qml 2016-01-29 14:35:31 +0000
@@ -16,9 +16,8 @@
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/>.
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import QtQuick.Layouts 1.1
2221
23import "ViewType.js" as ViewType22import "ViewType.js" as ViewType
2423
@@ -50,7 +49,7 @@
50 id: weekNumLabel49 id: weekNumLabel
51 objectName: "weeknumber"50 objectName: "weeknumber"
5251
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)
54 text: i18n.tr("W%1").arg(startDay.weekNumber(Qt.locale().firstDayOfWeek))53 text: i18n.tr("W%1").arg(startDay.weekNumber(Qt.locale().firstDayOfWeek))
55 fontSize: "small"54 fontSize: "small"
56 height: units.gu(5)55 height: units.gu(5)
5756
=== modified file 'TimeLineHeaderComponent.qml'
--- TimeLineHeaderComponent.qml 2016-01-29 14:35:31 +0000
+++ TimeLineHeaderComponent.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import "dateExt.js" as DateExt21import "dateExt.js" as DateExt
22import "ViewType.js" as ViewType22import "ViewType.js" as ViewType
2323
=== modified file 'TimeLineTimeScale.qml'
--- TimeLineTimeScale.qml 2016-01-29 14:35:31 +0000
+++ TimeLineTimeScale.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.019import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22Flickable{22Flickable{
2323
=== modified file 'TimeSeparator.qml'
--- TimeSeparator.qml 2014-09-20 10:45:35 +0000
+++ TimeSeparator.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
1919
20Rectangle {20Rectangle {
21 id: separator21 id: separator
2222
=== modified file 'ViewHeader.qml'
--- ViewHeader.qml 2016-01-29 14:35:31 +0000
+++ ViewHeader.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
2020
21Item{21Item{
2222
=== modified file 'WeekView.qml'
--- WeekView.qml 2016-01-29 14:35:31 +0000
+++ WeekView.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
21import "dateExt.js" as DateExt21import "dateExt.js" as DateExt
22import "ViewType.js" as ViewType22import "ViewType.js" as ViewType
2323
=== modified file 'YearView.qml'
--- YearView.qml 2016-01-29 14:35:31 +0000
+++ YearView.qml 2016-01-29 14:35:31 +0000
@@ -16,7 +16,7 @@
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/>.
17 */17 */
1818
19import QtQuick 2.319import QtQuick 2.4
20import Ubuntu.Components 1.320import Ubuntu.Components 1.3
2121
22import "dateExt.js" as DateExt22import "dateExt.js" as DateExt
2323
=== modified file 'YearViewDelegate.qml'
--- YearViewDelegate.qml 2016-01-29 14:35:31 +0000
+++ YearViewDelegate.qml 2016-01-29 14:35:31 +0000
@@ -1,4 +1,4 @@
1import QtQuick 2.01import QtQuick 2.4
2import Ubuntu.Components 1.32import Ubuntu.Components 1.3
33
4GridView{4GridView{
55
=== modified file 'calendar.qml'
--- calendar.qml 2016-01-29 14:35:31 +0000
+++ calendar.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
20import Ubuntu.Components.Popups 1.020import Ubuntu.Components.Popups 1.0
21import QtOrganizer 5.021import QtOrganizer 5.0
@@ -126,6 +126,7 @@
126 }126 }
127 }127 }
128128
129 // Load events after the app startup
129 Timer {130 Timer {
130 id: applyFilterTimer131 id: applyFilterTimer
131 interval: 200; running: false; repeat: false132 interval: 200; running: false; repeat: false
@@ -157,6 +158,16 @@
157 id: collectionFilter158 id: collectionFilter
158 }159 }
159160
161 InvalidFilter {
162 id: invalidFilter
163 }
164
165 IntersectionFilter {
166 id: mainFilter
167
168 filters: [ collectionFilter, itemTypeFilter]
169 }
170
160 EventListModel{171 EventListModel{
161 id: eventModel172 id: eventModel
162173
@@ -164,9 +175,7 @@
164 startPeriod: tabs.currentDay175 startPeriod: tabs.currentDay
165 endPeriod: tabs.currentDay176 endPeriod: tabs.currentDay
166177
167 filter: IntersectionFilter {178 filter: invalidFilter
168 filters: [ collectionFilter, itemTypeFilter]
169 }
170179
171 function delayedApplyFilter() {180 function delayedApplyFilter() {
172 applyFilterTimer.restart();181 applyFilterTimer.restart();
@@ -182,6 +191,7 @@
182 }191 }
183 }192 }
184 collectionFilter.ids = collectionIds;193 collectionFilter.ids = collectionIds;
194 filter = mainFilter
185 }195 }
186196
187 function showEventFromId(eventId) {197 function showEventFromId(eventId) {
@@ -214,6 +224,7 @@
214 id: tabs224 id: tabs
215 Keys.forwardTo: [tabs.currentPage]225 Keys.forwardTo: [tabs.currentPage]
216226
227 property bool isReady: false
217 property var currentDay: DateExt.today();228 property var currentDay: DateExt.today();
218 property var selectedDay;229 property var selectedDay;
219230
@@ -313,6 +324,7 @@
313 else {324 else {
314 tabs.selectedTabIndex = settings.defaultViewIndex;325 tabs.selectedTabIndex = settings.defaultViewIndex;
315 }326 }
327 tabs.isReady = true
316 } // End of Component.onCompleted:328 } // End of Component.onCompleted:
317329
318 EventActions {330 EventActions {
@@ -347,139 +359,194 @@
347 }359 }
348 }360 }
349361
350 onSelectedTabChanged: {
351 switch (tabs.selectedTab) {
352 case yearTab:{
353 if (yearTab.page === null) {
354 var yearViewCom = Qt.createComponent("YearView.qml");
355 if (yearViewCom.status === Component.Ready) {
356 var yearViewObj = yearViewCom.createObject(mainView);
357
358 yearViewObj.monthSelected.connect(function (date){
359 var now = DateExt.today();
360 if( date.getMonth() === now.getMonth()
361 && date.getFullYear() === now.getFullYear()) {
362 tabs.currentDay = now;
363 } else {
364 tabs.currentDay = date.midnight();
365 }
366 tabs.selectedTabIndex = monthTab.index;
367 })
368
369 yearTab.page = yearViewObj;
370 }
371 } else {
372 yearTab.page.refreshCurrentYear(DateExt.today().getFullYear());
373 }
374 } break;
375 case monthTab: {
376 if (monthTab.page === null) {
377 var monthViewCom = Qt.createComponent("MonthView.qml");
378 if (monthViewCom.status === Component.Ready) {
379 var monthViewObj = monthViewCom.createObject(mainView);
380
381 monthViewObj.dateSelected.connect(function (date) {
382 tabs.currentDay = date;
383 tabs.selectedTabIndex = dayTab.index;
384 })
385
386 monthTab.page = monthViewObj;
387 }
388 } else {
389 monthTab.page.currentMonth = tabs.currentDay.midnight();
390 }
391 } break;
392 case weekTab: {
393 if (weekTab.page === null) {
394 var weekViewCom = Qt.createComponent("WeekView.qml");
395 if (weekViewCom.status === Component.Ready) {
396 var weekViewObj = weekViewCom.createObject(mainView);
397
398 weekViewObj.isCurrentPage = Qt.binding(function() { return tabs.selectedTab == weekTab })
399 weekViewObj.onDayStartChanged.connect(function (){
400 tabs.currentDay = weekViewObj.dayStart;
401 });
402 weekViewObj.dateSelected.connect(function (date){
403 tabs.currentDay = date;
404 tabs.selectedTabIndex = dayTab.index;
405 });
406
407 weekTab.page = weekViewObj;
408 }
409 } else {
410 weekTab.page.dayStart = tabs.currentDay;
411 }
412 } break;
413 case dayTab: {
414 if (dayTab.page === null) {
415 var dayViewCom = Qt.createComponent("DayView.qml");
416 if (dayViewCom.status === Component.Ready) {
417 var dayViewObj = dayViewCom.createObject(mainView);
418
419 dayViewObj.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == dayTab })
420 dayViewObj.onCurrentDayChanged.connect(function (){
421 tabs.currentDay = dayViewObj.currentDay;
422 });
423 dayViewObj.dateSelected.connect(function (date) {
424 tabs.currentDay = date;
425 });
426
427 dayTab.page =dayViewObj;
428 }
429 } else {
430 dayTab.page.currentDay = tabs.currentDay;
431 }
432 } break;
433 case agendaTab: {
434 var agendaViewCom = Qt.createComponent("AgendaView.qml");
435 if (agendaViewCom.status === Component.Ready) {
436 var agendaViewObj = agendaViewCom.createObject(mainView);
437
438 agendaViewObj.dateSelected.connect(function (date){
439 tabs.currentDay = date;
440 tabs.selectedTabIndex = dayTab.index;
441 })
442 agendaTab.page = agendaViewObj;
443 }
444 } break;
445 default:
446 break;
447 }
448 }
449
450 Tab{362 Tab{
451 id: yearTab363 id: yearTab
452 objectName: "yearTab"364 objectName: "yearTab"
453 title: i18n.tr("Year")365 title: i18n.tr("Year")
454 page: null366
367 page: Loader {
368 id: yearViewLoader
369
370 asynchronous: true
371 sourceComponent: yearViewComp
372 active: false
373 // Load page on demand and keep it on memory until the application is closed
374 enabled: tabs.isReady && (tabs.selectedTab == yearTab)
375 onEnabledChanged: {
376 if (enabled && !active) {
377 active = true
378 }
379 }
380 }
455 }381 }
456382
457 Tab{383 Tab{
458 id: monthTab384 id: monthTab
459 objectName: "monthTab"385 objectName: "monthTab"
460 title: i18n.tr("Month")386 title: i18n.tr("Month")
461 page: null387
388 page: Loader {
389 id: monthTabLoader
390
391 asynchronous: true
392 sourceComponent: monthViewComp
393 active: false
394 // Load page on demand and keep it on memory until the application is closed
395 enabled: tabs.isReady && (tabs.selectedTab == monthTab)
396 onEnabledChanged: {
397 if (enabled && !active) {
398 active = true
399 }
400 }
401 }
462 }402 }
463403
464 Tab{404 Tab{
465 id: weekTab405 id: weekTab
466 objectName: "weekTab"406 objectName: "weekTab"
467 title: i18n.tr("Week")407 title: i18n.tr("Week")
468 page: null408
409 page: Loader {
410 id: weekTabLoader
411
412 asynchronous: true
413 sourceComponent: weekViewComp
414 active: false
415 // Load page on demand and keep it on memory until the application is closed
416 enabled: tabs.isReady && (tabs.selectedTab == weekTab)
417 onEnabledChanged: {
418 if (enabled && !active) {
419 active = true
420 }
421 }
422 }
469 }423 }
470424
471 Tab{425 Tab{
472 id: dayTab426 id: dayTab
473 objectName: "dayTab"427 objectName: "dayTab"
474 title: i18n.tr("Day")428 title: i18n.tr("Day")
475 page: null429
430 page:Loader {
431 id: dayTabLoader
432
433 asynchronous: true
434 sourceComponent: dayViewComp
435 active: false
436 // Load page on demand and keep it on memory until the application is closed
437 enabled: tabs.isReady && (tabs.selectedTab == dayTab)
438 onEnabledChanged: {
439 if (enabled && !active) {
440 active = true
441 }
442 }
443 }
476 }444 }
477445
478 Tab {446 Tab {
479 id: agendaTab447 id: agendaTab
480 objectName: "agendaTab"448 objectName: "agendaTab"
481 title: i18n.tr("Agenda")449 title: i18n.tr("Agenda")
482 page: null450
451 page: Loader {
452 id: agendaTabLoader
453
454 asynchronous: true
455 sourceComponent: agendaViewComp
456 active: false
457 // Load page on demand and keep it on memory until the application is closed
458 enabled: tabs.isReady && (tabs.selectedTab == agendaTab)
459 onEnabledChanged: {
460 if (enabled && !active) {
461 active = true
462 }
463 }
464 }
465 }
466 }
467 }
468
469 Component {
470 id: yearViewComp
471
472 YearView {
473 onMonthSelected: {
474 var now = DateExt.today();
475 if ((date.getMonth() === now.getMonth()) &&
476 (date.getFullYear() === now.getFullYear())) {
477 tabs.currentDay = now;
478 } else {
479 tabs.currentDay = date.midnight();
480 }
481 tabs.selectedTabIndex = monthTab.index;
482 }
483 onActiveChanged: {
484 if (active) {
485 refreshCurrentYear(DateExt.today().getFullYear())
486 }
487 }
488 }
489 }
490
491 Component {
492 id: monthViewComp
493
494 MonthView {
495 onDateSelected: {
496 tabs.currentDay = date;
497 tabs.selectedTabIndex = dayTab.index
498 }
499 onActiveChanged: {
500 if (active)
501 currentMonth = tabs.currentDay.midnight()
502 }
503 }
504 }
505
506 Component {
507 id: weekViewComp
508
509 WeekView {
510 onDayStartChanged: {
511 tabs.currentDay = dayStart
512 }
513 onDateSelected: {
514 tabs.currentDay = date;
515 tabs.selectedTabIndex = dayTab.index
516 }
517 onActiveChanged: {
518 if (active)
519 dayStart = tabs.currentDay
520 }
521 }
522 }
523
524 Component {
525 id: dayViewComp
526
527 DayView {
528 onCurrentDayChanged: {
529 tabs.currentDay = currentDay;
530 }
531
532 onDateSelected: {
533 tabs.currentDay = date
534 }
535
536 onActiveChanged: {
537 if (active)
538 currentDay = tabs.currentDay;
539 }
540 }
541 }
542
543 Component {
544 id: agendaViewComp
545
546 AgendaView {
547 onDateSelected: {
548 tabs.currentDay = date;
549 tabs.selectedTabIndex = dayTab.index
483 }550 }
484 }551 }
485 }552 }
486553
=== modified file 'calendarTests.qml'
--- calendarTests.qml 2016-01-29 14:35:31 +0000
+++ calendarTests.qml 2016-01-29 14:35:31 +0000
@@ -15,7 +15,7 @@
15 * You should have received a copy of the GNU General Public License15 * You should have received a copy of the GNU General Public License
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/>.
17 */17 */
18import QtQuick 2.318import QtQuick 2.4
19import Ubuntu.Components 1.319import Ubuntu.Components 1.3
2020
21MainView {21MainView {

Subscribers

People subscribed via source and target branches

to status/vote changes: