We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-07-15 19:05:47 +0200

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for all we know it has been disabled on purpose. There may be bugs.


As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly view. This is a problem because in agenda view you cannot scroll further back than the selected day.

Change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for all we know it has been disabled on purpose. There may be bugs.


As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly view. This is a problem because in agenda view you cannot scroll further back than the selected day.

Change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.


By default agenda page shows events from next seven days. You can increase the range of days in /usr/share/jolla-calendar/pages/AgendaPage.qml

endDate: QtDate.addDays(root.Date, 7)

Increase number 7 to whatever you like.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for all we know it has been disabled on purpose. There may be bugs.


As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly view. This is a problem because in agenda view you cannot scroll further back than the selected day.

Change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.


By default agenda page shows events from next seven days. You can increase the range of days in /usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Increase the number 7 to whatever you like.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for all we know it has been disabled on purpose. There may be bugs.


As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly view. This is a problem because in agenda view you cannot scroll further back than the selected day.

Change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.


By default agenda page shows events from next seven days. You can increase the range of days in /usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Increase the Change number 7 to whatever you like.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for all we know it has been disabled on purpose. There may be bugs.


As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly view. This is a problem because in agenda view you cannot scroll further back than the selected day.

ChangeIn above code, change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.


By default agenda page shows events from next seven days. You can increase the range of days in /usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Change number 7 to whatever you like.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional, but for functional. For all we know it has been disabled on purpose. There purpose, eg. there may be bugs.


Enable agenda view

As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Current day fix

Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in montly monthly view. This is a problem because in agenda view you cannot scroll further back than the selected day.day in agenda view.

In above code, change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date.date. (Except when the day changes in real time. See known bugs in the end of this article.)


Range of days shown in agenda view

By default agenda page shows events from of next seven days. You can increase the range of days in in

/usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Change number 7 to whatever you like.


Known bugs

  • If you leave the agenda view open, it does not automatically update to a next day when the day changes.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional. For all we know it has been disabled on purpose, eg. there may be bugs.


Enable agenda view

As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Current day fix

Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in monthly view. This is a problem because you cannot scroll further back than the selected day in agenda view.

In above code, change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date. (Except when the day changes in real time. See known bugs in the end of this article.)


Range of days shown in agenda view

By default agenda page shows events of next seven days. You can increase the range of days in

/usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Change number 7 to whatever you like.


Known bugs

  • If you leave the agenda view open, it does not automatically update to a next day when the day changes.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional. For all we know it has been disabled on purpose, eg. there may be bugs.

You can use text editors such TinyEdit, vim or nano to edit qml files. Instructions how to use TinyEdit can be found here.


Enable agenda view

As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Current day fix

Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in monthly view. This is a problem because you cannot scroll further back than the selected day in agenda view.

In above code, change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date. (Except when the day changes in real time. See known bugs in the end of this article.)


Range of days shown in agenda view

By default agenda page shows events of next seven days. You can increase the range of days in

/usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Change number 7 to whatever you like.


Known bugs

  • If you leave the agenda view open, it does not automatically update to a next day when the day changes.

Wiki: How to enable agenda view in Jolla calendar

Note: Agenda view seems fully functional. For all we know it has been disabled on purpose, eg. there may be bugs.

You can use text editors such as TinyEdit, vim or nano to edit qml files. Instructions how to use TinyEdit can be found here.


Enable agenda view

As devel-su you can enable agenda view by uncommenting following part in

/usr/share/jolla-calendar/pages/MonthPage.qml

/* Disabled for now
MenuItem {
    //% "Show agenda"
    text: qsTrId("calendar-me-show_agenda")
    onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})
}
*/

To uncomment the code remove the two lines with /* and */.

Restart the calendar if it was already running. After this you can select the agenda view from the pulley of the calendar monthly view.


Current day fix

Here is Nieldk's fix to the bug where agenda view incorrectly defaults to any selected day in monthly view. This is a problem because you cannot scroll further back than the selected day in agenda view.

In above code, change

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date})

to

onClicked: pageStack.push("AgendaPage.qml", {date: datePicker.date = new Date()})

Then it will always show the schedule from current date. (Except when the day changes in real time. See known bugs in the end of this article.)


Range of days shown in agenda view

By default agenda page shows events of next seven days. You can increase the range of days in

/usr/share/jolla-calendar/pages/AgendaPage.qml

model: AgendaModel {
    startDate: root.date 
    endDate: QtDate.addDays(root.Date, 7)
}

Change number 7 to whatever you like.


Known bugs

  • If you leave the agenda view open, it does not automatically update to a next day when the day changes.