summaryrefslogtreecommitdiff
path: root/Course
diff options
context:
space:
mode:
authoranatasof wirapraja <anatasof.wirapraja@gmail.com>2023-04-04 12:48:07 +0700
committeranatasof wirapraja <anatasof.wirapraja@gmail.com>2023-04-04 12:48:07 +0700
commitbd8e41e07712f6254ebc5fe9086b081bf9d1d3cf (patch)
tree20bcd14324b6cf0843c8aefd0db7469298c1837a /Course
parent99f76ba0ef58a252c1d82acbd56df8b6ef5a735c (diff)
remove layout.fillwidth on FilterBar.ui.qml and add Layout to Minimal.ui.qml
Diffstat (limited to 'Course')
-rw-r--r--Course/Grid/Minimal.ui.qml7
-rw-r--r--Course/Grid/Minimal/FilterBar.ui.qml10
2 files changed, 10 insertions, 7 deletions
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