diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-02-27 13:04:04 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-02-27 13:04:04 +0700 |
commit | 6f7c3736c9aad9f1f8fb00df5b17738e9a19389c (patch) | |
tree | 02435b795ecc5f4dd6916c61a898dfc85c48e78e | |
parent | 1d05bfd0c1f74b7c6049acd143b32f8ce6b4bdce (diff) |
add ListInlineItem to InstructorContent
-rw-r--r-- | InstructorContent.ui.qml | 21 | ||||
-rw-r--r-- | ListInlineItem.ui.qml | 68 |
2 files changed, 54 insertions, 35 deletions
diff --git a/InstructorContent.ui.qml b/InstructorContent.ui.qml index db0a15d..b726cf0 100644 --- a/InstructorContent.ui.qml +++ b/InstructorContent.ui.qml @@ -36,7 +36,26 @@ GridLayout { font.styleName: "Regular" font.pointSize: 16 font.family: "roboto" - + + } + RowLayout{ + spacing: 16 + ListInlineItem { + id: listInlineItem1 + } + + ListInlineItem { + id: listInlineItem2 + } + + ListInlineItem { + id: listInlineItem3 + } + + ListInlineItem { + id: listInlineItem4 + } + } } diff --git a/ListInlineItem.ui.qml b/ListInlineItem.ui.qml index 0521d37..324327d 100644 --- a/ListInlineItem.ui.qml +++ b/ListInlineItem.ui.qml @@ -3,38 +3,38 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 RowLayout { - id:listInline - width: listInlineItem.width - height: listInlineItem.height - RowLayout { - id:listInlineItem - Rectangle { - radius: 100 - color: "#4dfd7e14" - Layout.preferredHeight: 42 - Layout.preferredWidth: 42 - Layout.minimumHeight: 42 - Layout.minimumWidth: 42 - - Image { - id: image - anchors.verticalCenter: parent.verticalCenter - source: "qrc:/qtquickplugin/images/template_image.png" - anchors.horizontalCenter: parent.horizontalCenter - fillMode: Image.PreserveAspectFit - Layout.preferredHeight: 12 - Layout.preferredWidth: 12 - Layout.minimumHeight: 12 - Layout.minimumWidth: 12 - } - } - Label { - id: instructorTitle - color: "#000000" - text: qsTr("List inline item metrics") - font.styleName: "Regular" - font.pointSize: 14 - font.family: "roboto" - } - } + id:listInline + width: listInlineItem.width + height: listInlineItem.height + RowLayout { + id:listInlineItem + Rectangle { + radius: 100 + color: "#4dfd7e14" + Layout.preferredHeight: 42 + Layout.preferredWidth: 42 + Layout.minimumHeight: 42 + Layout.minimumWidth: 42 + + Image { + id: image + anchors.verticalCenter: parent.verticalCenter + source: "qrc:/qtquickplugin/images/template_image.png" + anchors.horizontalCenter: parent.horizontalCenter + fillMode: Image.PreserveAspectFit + Layout.preferredHeight: 12 + Layout.preferredWidth: 12 + Layout.minimumHeight: 12 + Layout.minimumWidth: 12 + } + } + Label { + id: instructorTitle + color: "#000000" + text: qsTr("List inline item metrics") + font.styleName: "Regular" + font.pointSize: 14 + font.family: "roboto" + } + } }
\ No newline at end of file |