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

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

I will need to check about DetailsFilter, I never tried that filter.

> I can use EvenListModel directly as model in my ListView, yes, but I don't
> know how to set a property on each item with the event *date* value (in string
> format). Any clue?

Regarding using EventListModel directly, something like following should work. Though we need i18n.tr, instead of Qt.formatDate, this is code from Qt example.

                TextEdit {
                    id: startTime
                    font.pixelSize: 12
                    text: (model.item) ? Qt.formatDate(
                                             model.item.startDateTime) : ""
                    readOnly: true
                }

Following is link for complete example, will be useful.
https://qt.gitorious.org/qt/qtpim/source/cdbe3d4a34f728caaac15eccc9fdca3195b60b3a:examples/organizer/qmlorganizerlistview/qmlorganizerlistview.qml

« Back to merge proposal