summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-11 15:26:39 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-11 15:26:39 +0800
commitde42120ff1b9ead6d52adf634412fdd06ad94430 (patch)
tree241f10c9f870657635ac32ee950a72ee559199e0 /Course/Detail/Classic
parentfb6683ebfcbece4b276bd3eea1a06b49c34c8454 (diff)
Share button
Diffstat (limited to 'Course/Detail/Classic')
-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 {