summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HomeDefault.ui.qml38
1 files changed, 23 insertions, 15 deletions
diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml
index be58d58..86b4ae5 100644
--- a/HomeDefault.ui.qml
+++ b/HomeDefault.ui.qml
@@ -174,26 +174,34 @@ Flickable {
}
}
- GridView {
- id: popular
- interactive: false
- cellWidth: width < 576 ? width
- : width < 768 ? width / 2
- : width < 992 ? width / 3
- : width / 4
- cellHeight: cellWidth * 1.3
- height: width < 576
- ? cellHeight * count
- : width < 768
- ? cellHeight * (count + count % 2) / 2
- : width < 992
- ? cellHeight * (count + (count + 1) % 3) / 3
- : cellHeight * (count + (count + 2) % 4) / 4
+ SwipeView {
anchors {
top: counter.bottom
left: parent.left
right: parent.right
}
+ height: popular.height
+
+ GridView {
+ id: popular
+ interactive: false
+ cellWidth: width < 576 ? width
+ : width < 768 ? width / 2
+ : width < 992 ? width / 3
+ : width / 4
+ cellHeight: cellWidth * 1.3
+ width: parent.width
+ height: width < 576
+ ? cellHeight * count
+ : width < 768
+ ? cellHeight
+ * (count + count % 2) / 2
+ : width < 992
+ ? cellHeight
+ * (count + (count + 1) % 3) / 3
+ : cellHeight
+ * (count + (count + 2) % 4) / 4
+ }
}
}
}