forked from Public/monero-gui
https://trello.com/c/uksby2dk/43-create-history-page
This commit is contained in:
@@ -110,6 +110,12 @@ Item {
|
||||
return day < 10 ? "0" + day : day
|
||||
}
|
||||
}
|
||||
onFocusChanged: {
|
||||
if(focus === false) {
|
||||
if(text.length === 0 || text === "0" || text === "00") text = "01"
|
||||
else if(text.length === 1) text = "0" + text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -135,6 +141,12 @@ Item {
|
||||
return month < 10 ? "0" + month : month
|
||||
}
|
||||
}
|
||||
onFocusChanged: {
|
||||
if(focus === false) {
|
||||
if(text.length === 0 || text === "0" || text === "00") text = "01"
|
||||
else if(text.length === 1) text = "0" + text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -152,8 +164,16 @@ Item {
|
||||
color: "#525252"
|
||||
maximumLength: 4
|
||||
horizontalAlignment: TextInput.AlignHCenter
|
||||
validator: IntValidator{bottom: 2000; top: 2100;}
|
||||
validator: IntValidator{bottom: 1000; top: 9999;}
|
||||
text: if(datePicker.showCurrentDate) datePicker.currentDate.getFullYear()
|
||||
onFocusChanged: {
|
||||
if(focus === false) {
|
||||
var d = new Date()
|
||||
var y = d.getFullYear()
|
||||
if(text.length != 4 || text[0] === "0")
|
||||
text = y
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ ListView {
|
||||
property var previousItem
|
||||
delegate: Rectangle {
|
||||
id: delegate
|
||||
height: 90
|
||||
height: 114
|
||||
width: listView.width
|
||||
color: index % 2 ? "#F8F8F8" : "#FFFFFF"
|
||||
function collapseDropdown() { dropdown.expanded = false }
|
||||
@@ -71,10 +71,40 @@ ListView {
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
Text {
|
||||
id: paymentLabel
|
||||
anchors.left: parent.left
|
||||
anchors.top: row1.bottom
|
||||
anchors.topMargin: 8
|
||||
anchors.topMargin: 4
|
||||
anchors.leftMargin: 28
|
||||
|
||||
width: 118
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 12
|
||||
font.letterSpacing: -1
|
||||
color: "#535353"
|
||||
text: qsTr("Payment ID:")
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors.bottom: paymentLabel.bottom
|
||||
anchors.left: paymentLabel.right
|
||||
anchors.right: parent.right
|
||||
anchors.leftMargin: 12
|
||||
anchors.rightMargin: 12
|
||||
|
||||
elide: Text.ElideRight
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 13
|
||||
font.letterSpacing: -1
|
||||
color: "#545454"
|
||||
text: paymentId
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 11
|
||||
spacing: 12
|
||||
|
||||
Item { //separator
|
||||
|
||||
Reference in New Issue
Block a user