From de42120ff1b9ead6d52adf634412fdd06ad94430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 11 May 2023 15:26:39 +0800 Subject: Share button --- Course/Detail/Classic/Content/Sidebar/Video.ui.qml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'Course') diff --git a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml index 3bd67d6..2518da2 100644 --- a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml +++ b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml @@ -16,6 +16,9 @@ ColumnLayout { property string priceText: "$150" property alias discount: discount property alias time: time + property alias share: share + property alias shareMenu: shareMenu + property alias shareList: shareList property alias trial: trial property alias buy: buy spacing: 16 @@ -138,6 +141,39 @@ ColumnLayout { } } } + + Button { + id: share + Layout.fillWidth: true + display: AbstractButton.IconOnly + icon.source: "../../../../../Font-Awesome/svgs/solid/share-nodes.svg" + + Menu { + id: shareMenu + ListView { + id: shareList + interactive: false + implicitHeight: count * 40 + model: ListModel { + ListElement { + label: "Twitter" + } + ListElement { + label: "Facebook" + } + ListElement { + label: "LinkedIn" + } + ListElement { + label: qsTr("Copy link") + } + } + delegate: Button { + text: label + } + } + } + } } RowLayout { -- cgit v1.2.3