-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFiche.qml
108 lines (93 loc) · 2.63 KB
/
Fiche.qml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import ATeam.Phileas.AssetsSingleton 1.0
import ATeam.BlobImage 1.0
Item {
id:root
property alias photo: photoCand.imageData
property alias nom: nom.text
property alias tel: tel.text
property alias email: email.text
property alias cv: cv.text
Column{
id:col
anchors.fill: parent
anchors.margins : 2
spacing : 15
BlobImage{
id:photoCand
visible:true
width:parent.width * .5
height:Math.min(200,parent.height * .2)
}
GridLayout {
id:contactDetails
visible: true
width:parent.width
anchors.right:parent.right
columns: 2
rowSpacing: 10
columnSpacing: 10
Label {
text: qsTr("Nom :")
Layout.leftMargin: 1
wrapMode:Text.Wrap
}
Label {
id:nom
font.bold: true
elide: Text.ElideRight
Layout.fillWidth: true
color:"white"
wrapMode:Text.Wrap
}
Label {
text: qsTr("Tel:")
Layout.leftMargin: 1
wrapMode:Text.Wrap
}
Label {
id:tel
font.bold: true
elide: Text.ElideRight
color:"white"
wrapMode:Text.Wrap
MouseArea{
anchors.fill:parent
onClicked: Qt.openUrlExternally("tel:"+parent.text)
}
}
Label {
text: qsTr("e-Mail:")
Layout.leftMargin: 1
wrapMode:Text.Wrap
}
Label {
id:email
font.bold: true
elide: Text.ElideRight
color:"white"
wrapMode:Text.Wrap
MouseArea{
anchors.fill:parent
onClicked: Qt.openUrlExternally("mailto:"+parent.text)
}
}
}
Flickable{
width:parent.width
contentWidth: width
contentHeight: cv.height
clip: true
height:parent.height - photoCand.height - contactDetails.height - 2 *col.spacing
Label {
id:cv
width:parent.width
font: Assets.fonts.robotslab.name
wrapMode: Label.WordWrap
color:"white"
}
}
}
}