Code review comment for lp:~yohanboniface/ubuntu-calendar-app/AgendaView

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

You should be able to filter events type using this this example:

    OrganizerModel {
        id: organizer

        startPeriod: new Date("2014-01-01")
        endPeriod: new Date("2014-12-31")
        manager: "eds"
        autoUpdate: true
        onItemCountChanged: console.debug("Item count changed: " + itemCount)
        filter: DetailFieldFilter {
            id: todoFilter
            detail: Detail.ItemType
            field: Type.FieldType
            value: Type.Todo
            matchFlags: Filter.MatchExactly
        }
        Component.onCompleted: console.debug("Type: " + Type.Todo)

    }

« Back to merge proposal