history: support old payment ids and make fields selectable

history: fix payment id width
This commit is contained in:
Jacob Brydolf 2016-11-05 12:19:47 +01:00
parent c9bb2f5718
commit c84ba7c4ce

View file

@ -35,6 +35,7 @@ ListView {
clip: true clip: true
boundsBehavior: ListView.StopAtBounds boundsBehavior: ListView.StopAtBounds
property var previousItem property var previousItem
property int rowSpacing: 12
footer: Rectangle { footer: Rectangle {
height: 127 height: 127
@ -53,7 +54,7 @@ ListView {
delegate: Rectangle { delegate: Rectangle {
id: delegate id: delegate
height: 114 height: 144
width: listView.width width: listView.width
color: index % 2 ? "#F8F8F8" : "#FFFFFF" color: index % 2 ? "#F8F8F8" : "#FFFFFF"
z: listView.count - index z: listView.count - index
@ -107,11 +108,13 @@ ListView {
} }
*/ */
// -- address (in case outgoing transaction) - N/A in case of incoming // -- address (in case outgoing transaction) - N/A in case of incoming
Text { TextEdit {
id: addressText id: addressText
readOnly: true
selectByMouse: true
anchors.verticalCenter: dot.verticalCenter anchors.verticalCenter: dot.verticalCenter
width: parent.width - x - 12 width: parent.width - x - 12
elide: Text.ElideRight //elide: Text.ElideRight
font.family: "Arial" font.family: "Arial"
font.pixelSize: 14 font.pixelSize: 14
color: "#545454" color: "#545454"
@ -121,7 +124,7 @@ ListView {
} }
Row { Row {
// - Payment ID + block height row // - Payment ID
id: row2 id: row2
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
@ -141,17 +144,30 @@ ListView {
text: paymentId !== "" ? qsTr("Payment ID:") + translationManager.emptyString : "" text: paymentId !== "" ? qsTr("Payment ID:") + translationManager.emptyString : ""
} }
// -- "PaymentID" value // -- "PaymentID" value
Text { TextEdit {
readOnly: true
selectByMouse: true
id: paymentIdValue id: paymentIdValue
width: 136 width: 136
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
elide: Text.ElideRight //elide: Text.ElideRight
font.family: "Arial" font.family: "Arial"
font.pixelSize:13 font.pixelSize:13
font.letterSpacing: -1 font.letterSpacing: -1
color: "#545454" color: "#545454"
text: paymentId text: paymentId
} }
}
Row {
// block height row
id: row3
anchors.left: parent.left
anchors.right: parent.right
anchors.top: row2.bottom
anchors.topMargin: rowSpacing
anchors.leftMargin: 26
// -- "BlockHeight" title // -- "BlockHeight" title
Text { Text {
id: blockHeghtTitle id: blockHeghtTitle
@ -164,10 +180,12 @@ ListView {
text: qsTr("BlockHeight:") + translationManager.emptyString text: qsTr("BlockHeight:") + translationManager.emptyString
} }
// -- "BlockHeight" value // -- "BlockHeight" value
Text { TextEdit {
readOnly: true
selectByMouse: true
width: 85 width: 85
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
elide: Text.ElideRight //elide: Text.ElideRight
font.family: "Arial" font.family: "Arial"
font.pixelSize: 13 font.pixelSize: 13
font.letterSpacing: -1 font.letterSpacing: -1
@ -176,13 +194,13 @@ ListView {
} }
} }
// -- "Date", "Balance" and "Amound" section // -- "Date", "Balance" and "Amound" section
Row { Row {
id: row4
anchors.top: row3.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.bottomMargin: 11
spacing: 12 spacing: 12
anchors.topMargin: rowSpacing
Item { //separator Item { //separator
width: 14 width: 14