From bd8e41e07712f6254ebc5fe9086b081bf9d1d3cf Mon Sep 17 00:00:00 2001 From: anatasof wirapraja Date: Tue, 4 Apr 2023 12:48:07 +0700 Subject: remove layout.fillwidth on FilterBar.ui.qml and add Layout to Minimal.ui.qml --- Course/Grid/Minimal.ui.qml | 7 ++++++- Course/Grid/Minimal/FilterBar.ui.qml | 10 ++++------ 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'Course') diff --git a/Course/Grid/Minimal.ui.qml b/Course/Grid/Minimal.ui.qml index a4ad119..3ff42c1 100644 --- a/Course/Grid/Minimal.ui.qml +++ b/Course/Grid/Minimal.ui.qml @@ -22,7 +22,12 @@ Flickable { right: parent.right } - FilterBar {} + FilterBar { + Layout.topMargin: 16 + Layout.rightMargin: 16 + Layout.leftMargin: 16 + Layout.fillWidth: true + } GridView { id: courseGrid diff --git a/Course/Grid/Minimal/FilterBar.ui.qml b/Course/Grid/Minimal/FilterBar.ui.qml index d9bf81a..f135b60 100644 --- a/Course/Grid/Minimal/FilterBar.ui.qml +++ b/Course/Grid/Minimal/FilterBar.ui.qml @@ -12,7 +12,10 @@ Rectangle { border.color: "#33000000" GridLayout { id: filterBarControl - anchors.fill: parent + anchors { + left: parent.left + right: parent.right + } rows: 6 columns: 6 rowSpacing: 16 @@ -32,28 +35,24 @@ Rectangle { ComboBox { id: categories - Layout.fillWidth: true font.pointSize: 16 font.family: "Roboto" displayText: "Categories" } ComboBox { id: priceLevel - Layout.fillWidth: true font.pointSize: 16 font.family: "Roboto" displayText: "Price level" } ComboBox { id: skillLevel - Layout.fillWidth: true font.pointSize: 16 font.family: "Roboto" displayText: "Skill level" } ComboBox { id: language - Layout.fillWidth: true font.pointSize: 16 font.family: "Roboto" displayText: "Languange" @@ -61,7 +60,6 @@ Rectangle { Button { id: searchButton - Layout.fillWidth: true icon.color: "#ffffff" icon.source: "../../../Font-Awesome/svgs/solid/magnifying-glass.svg" Layout.rightMargin: 24 -- cgit v1.2.3