From 7e32b7dc6efab319ffbaff64c0a77cf10f810df9 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 4 Sep 2019 22:26:45 +0700 Subject: add svg assets --- assets/check-box-outline-24px.svg | 1 + assets/chevron-right-24px.svg | 1 + kelakon.qrc | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 assets/check-box-outline-24px.svg create mode 100644 assets/chevron-right-24px.svg diff --git a/assets/check-box-outline-24px.svg b/assets/check-box-outline-24px.svg new file mode 100644 index 0000000..68d3447 --- /dev/null +++ b/assets/check-box-outline-24px.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/chevron-right-24px.svg b/assets/chevron-right-24px.svg new file mode 100644 index 0000000..acabc29 --- /dev/null +++ b/assets/chevron-right-24px.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kelakon.qrc b/kelakon.qrc index bab06ed..d6251ff 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -21,5 +21,7 @@ pages/Home.qml pages/HomeForm.ui.qml assets/menu-24px.svg + assets/check-box-outline-24px.svg + assets/chevron-right-24px.svg -- cgit v1.2.3 From 9b23d983971fea7efa08f0732acf859991ac6aaa Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 4 Sep 2019 22:27:40 +0700 Subject: test task list check box without using qtquick.controls --- pages/HomeForm.ui.qml | 66 ++++++++++++++++++++------------------------------- 1 file changed, 26 insertions(+), 40 deletions(-) diff --git a/pages/HomeForm.ui.qml b/pages/HomeForm.ui.qml index b186701..75e988b 100644 --- a/pages/HomeForm.ui.qml +++ b/pages/HomeForm.ui.qml @@ -8,9 +8,6 @@ Rectangle { property alias menuButton: menuButton property alias taskList: taskList - property alias taskList2: taskList2 - property alias taskItem: taskItem - property alias taskItem2: taskItem2 ToolBar { id: toolbar @@ -54,10 +51,9 @@ Rectangle { } } - Rectangle { + RowLayout { id: taskList height: 72 - color: "#ffffff" anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left @@ -65,41 +61,27 @@ Rectangle { anchors.top: toolbar.bottom anchors.topMargin: 8 - GridLayout { - CheckBox { - id: taskItem - text: qsTr("Task name") - font.weight: Font.Medium - font.family: "Google Sans" - font.pointSize: 16 - checked: true - width: parent.width - height: parent.height - } + RoundButton { + id: checkBox + flat: true + icon.name: "check-box-icon" + icon.source: "/assets/check-box-outline-24px.svg" + icon.color: "#99000000" } - } - Rectangle { - id: taskList2 - height: 72 - color: "#ffffff" - anchors.right: parent.right - anchors.rightMargin: 0 - anchors.left: parent.left - anchors.leftMargin: 0 - anchors.top: taskList.bottom - anchors.topMargin: 0 - - GridLayout { - CheckBox { - id: taskItem2 - text: qsTr("Another task name") - font.weight: Font.Medium - font.family: "Google Sans" - font.pointSize: 16 - checked: false - width: parent.width - height: parent.height - } + Label { + id: taskLabel + text: qsTr("Task number 1") + font.weight: Font.Medium + font.pointSize: 16 + Layout.fillWidth: true + font.family: "Google Sans" + } + RoundButton { + id: taskDetailNavigate + flat: true + icon.name: "chevron-right-icon" + icon.source: "/assets/chevron-right-24px.svg" + icon.color: "#99000000" } } } @@ -107,7 +89,11 @@ Rectangle { + + + + /*##^## Designer { - D{i:0;autoSize:true;height:480;width:640}D{i:7;anchors_width:534;anchors_x:8;anchors_y:62} + D{i:0;autoSize:true;height:480;width:640} } ##^##*/ -- cgit v1.2.3