-
Notifications
You must be signed in to change notification settings - Fork 0
/
TransactionListItem.qml
54 lines (45 loc) · 1.23 KB
/
TransactionListItem.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
import QtQuick 2.4
import Material 0.1
import Material.ListItems 0.1 as ListItem
import QtQuick.Controls 1.3 as QuickControls
import QtQuick.Layouts 1.1
import "qml-material/modules/Material/Extras/js/dateutils.js" as Dateutils
View {
elevation: 1
height: Units.gu(1)
RowLayout{
anchors.centerIn: parent
width: parent.width - Units.gu(0.5)
HashIcon{
Layout.alignment: Qt.AlignVCenter
size: Units.gu(0.75)
hash: address
}
Item{
Layout.preferredWidth: Units.dp(32)
}
Label {
Layout.alignment: Qt.AlignVCenter
text: Math.round(amount * 100) / 100 + " XMR"
style: "subheading"
}
Label {
Layout.alignment: Qt.AlignVCenter
text: "recieved from "
style: "subheading"
}
Label {
Layout.alignment: Qt.AlignVCenter
text: address.slice(0,32)
style: "subheading"
Layout.fillWidth: true
}
Label {
Layout.alignment: Qt.AlignVCenter
style: "subheading"
text: {
return Dateutils.friendlyTime(date)
}
}
}
}