Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
5.0.0
-
None
Description
The use case is auto tested:
- http://code.qt.io/cgit/qt/qtdeclarative.git/tree/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp?id=e48a10d40001c6efdb3b875c1d0087674dee2a48#n388
- http://code.qt.io/cgit/qt/qtdeclarative.git/tree/tests/auto/qml/qqmllistmodel/tst_qqmllistmodel.cpp?id=e48a10d40001c6efdb3b875c1d0087674dee2a48#n852
Here's an example:
ListModel { id: alarmModel ListElement { hour: 6 minute: 0 day: 2 month: 8 year: 2018 activated: true label: "Wake up" daysToRepeat: [ ListElement { dayOfWeek: 0; repeat: false }, ListElement { dayOfWeek: 1; repeat: false }, ListElement { dayOfWeek: 2; repeat: false }, ListElement { dayOfWeek: 3; repeat: false }, ListElement { dayOfWeek: 4; repeat: false }, ListElement { dayOfWeek: 5; repeat: false }, ListElement { dayOfWeek: 6; repeat: false } ] } // ... }