diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-04 11:55:18 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-04 11:55:18 +0800 |
commit | 015cb69e26384374aab57bd3e0c7227d8d5e76be (patch) | |
tree | 9bde42b243a7b0d6271aeb02a8828062a47b5b40 | |
parent | 388314f9310e0630b7763b6fdae6bf70d977b4c5 (diff) |
UI QML can't open methods
-rw-r--r-- | HomeDefault.ui.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index 782d5f8..9b1276d 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -270,17 +270,17 @@ Flickable { StackLayout { currentIndex: tabs.currentIndex - property int currentCount: tabsContent.itemAt(currentIndex).count Layout.preferredHeight: width < 576 - ? width * 1.3 * currentCount + ? width * 1.3 * tabsContent.currentCount : width < 768 - ? width / 2 * 1.3 * (currentCount + currentCount % 2) / 2 + ? width / 2 * 1.3 * (tabsContent.currentCount + tabsContent.currentCount % 2) / 2 : width < 992 - ? width / 3 * 1.3 * (currentCount + (currentCount + 1) % 3) / 3 - : width / 4 * 1.3 * (currentCount + (currentCount + 2) % 4) / 4 + ? width / 3 * 1.3 * (tabsContent.currentCount + (tabsContent.currentCount + 1) % 3) / 3 + : width / 4 * 1.3 * (tabsContent.currentCount + (tabsContent.currentCount + 2) % 4) / 4 Repeater { id: tabsContent + property int currentCount: 8 model: ListModel { ListElement { content: [ |