Fix the carousel converted to grid scenario
commit291d4b4a9e8479d7f621523a1716d1716e39f8c2
authorAlbert Astals <albert.astals@canonical.com>
dateThu 13 Feb 2014, 12:04 (13 years ago)
parentfa758b2
qml/Dash/CardFilterGrid.qml+7−1
@@ -28,7 +28,13 @@ DashFilterGrid {
2828 CardTool {
2929 id: cardTool
3030
31− template: genericFilterGrid.template
31+ template: {
32+ // We can't trust the parent template. It may happen that originally
33+ // it was a carousel but it's now a grid because of the lack of elements
34+ var t = genericFilterGrid.template
35+ t["category-layout"] = "grid";
36+ return t;
37+ }
3238 components: genericFilterGrid.components
3339 }
3440