summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic/Content
diff options
context:
space:
mode:
Diffstat (limited to 'Course/Detail/Classic/Content')
-rw-r--r--Course/Detail/Classic/Content/Sidebar/Video.ui.qml36
1 files changed, 36 insertions, 0 deletions
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 {