Closed micuintus closed 6 years ago
After your patch, the opening hours are just gone.
Might be because of:
- model: OpeningHoursModel {
- id: openingHoursModel
- openingData: {
- "otMon": venueDetails.restaurant.otMon,
- "otTue": venueDetails.restaurant.otTue,
- "otWed": venueDetails.restaurant.otWed,
- "otThu": venueDetails.restaurant.otThu,
- "otFri": venueDetails.restaurant.otFri,
- "otSat": venueDetails.restaurant.otSat,
- "otSun": venueDetails.restaurant.otSun
- }
-
- Component.onCompleted: condenseOpeningHoursModel()
- }
+ model: restaurant.condensedOpeningHours.length
but I am not sure...
Oh, sorry, I didn't see that warning on my machine. For some some strange reasons my compiler interpreted this code in the way I meant it and not in the undefined behavior how a compiler could (should) interpret it by the C++ standard. See https://stackoverflow.com/questions/6838408/how-can-i-declare-and-define-multiple-variables-in-one-line-using-c
Without any real review, just compiling it yields to: