summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic/Content/Main/TabContents/Reviews/ReviewItem.ui.qml
blob: 9643916e92778dbd3108787a7ff20ec39f306fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Effects

Item {
	width: reviewItem.width
	height: reviewItem.height
	RowLayout {
		id:reviewItem
		spacing: 16
		RowLayout {
			Layout.alignment: Qt.AlignLeft | Qt.AlignTop
			Image {
				id: avatarImage
				source: "https://eduport.webestica.com/assets/images/avatar/09.jpg"
				sourceSize {
					width: 82
					height: 82
				}
			}
			layer {
				enabled: true
				effect: MultiEffect {
					maskEnabled: true
					maskSource: maskRectangle
				}
			}
			Rectangle {
				id: maskRectangle
				width: avatarImage.sourceSize.width
				height: avatarImage.sourceSize.height
				radius: avatarImage.sourceSize.width
				layer.enabled: true
				visible: false
			}
		}
		ColumnLayout {
			id: reviewDetails
			Layout.alignment: Qt.AlignLeft | Qt.AlignTop
			Layout.maximumWidth: 680
			spacing: 8
			
			Label {
				id: reviewerName
				color: "#000000"
				text: "Reviewer Name"
				font.pointSize: 21
				font.family: "roboto"
				Layout.fillWidth: true
			}
			Label {
				id: reviewTimestamp
				color: "#4d000000"
				text: "2 days ago"
				font.pointSize: 14
				font.family: "roboto"
				Layout.fillWidth: true
			}
			Label {
				id: reviewText
				color: "#4d000000"
				text: "Perceived end knowledge certainly day sweetness why cordially. Ask a quick six seven offer see among. Handsome met debating sir dwelling age material. As style lived he worse dried. Offered related so visitors we private removed. Moderate do subjects to distance."
				wrapMode: Text.WordWrap
				font.pointSize: 16
				font.family: "roboto"
				Layout.fillWidth: true
			}
		}

	}
}