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 ++++++++++++++++++++++ CourseDetailClassic.qrc | 1 + Font-Awesome/svgs/solid/share-nodes.svg | 1 + 3 files changed, 38 insertions(+) create mode 100644 Font-Awesome/svgs/solid/share-nodes.svg 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 { diff --git a/CourseDetailClassic.qrc b/CourseDetailClassic.qrc index dd7ec2e..c6909c3 100644 --- a/CourseDetailClassic.qrc +++ b/CourseDetailClassic.qrc @@ -5,6 +5,7 @@ Course/Detail/Classic/Content/Main.ui.qml Font-Awesome/svgs/solid/circle-play.svg Font-Awesome/svgs/solid/stopwatch.svg + Font-Awesome/svgs/solid/share-nodes.svg Course/Detail/Classic/Content/Sidebar/Video.ui.qml Course/Detail/Classic.ui.qml diff --git a/Font-Awesome/svgs/solid/share-nodes.svg b/Font-Awesome/svgs/solid/share-nodes.svg new file mode 100644 index 0000000..dbeb005 --- /dev/null +++ b/Font-Awesome/svgs/solid/share-nodes.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3