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

Revision history for this message
ybon (yohanboniface) wrote :

> Victor is right, DetailFilter's details propperty accepts Type object and not
> type itself.
> Needs to do something like below.
>
> Type {
> id: typeDetailToMatch
> type: Type.Todo
> }
> DetailFilter {
> id: todoFilter
> detail: typeDetailToMatch
> }

Well, I know that, I've read the documentation too. This example comes right from the DetailFilter page (http://developer.ubuntu.com/api/qml/sdk-14.04/QtOrganizer.DetailFilter/), and indeed this was my first attempt too, but it doesn't work either:

ybon@edoardo:~/Code/qml/calendar-app$ qmlscene testfilter.qml
file:///home/ybon/Code/qml/calendar-app/testfilter.qml:10 Invalid property assignment: "type" is a read-only property

We need someone who *knows*. The documentation is useless and wrong (and renato sadly doesn't know either). And I sadly don't have enough time these days to play the riddle for hours :(

« Back to merge proposal