mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Receive page; modified subaddress table
This commit is contained in:
parent
4977049425
commit
57a9508849
@ -150,10 +150,6 @@ Item {
|
|||||||
id: cancelButton
|
id: cancelButton
|
||||||
width: 120
|
width: 120
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Cancel") + translationManager.emptyString
|
text: qsTr("Cancel") + translationManager.emptyString
|
||||||
KeyNavigation.tab: input
|
KeyNavigation.tab: input
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -165,10 +161,6 @@ Item {
|
|||||||
id: okButton
|
id: okButton
|
||||||
width: 120
|
width: 120
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
shadowReleasedColor: "#FF4304"
|
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Ok")
|
text: qsTr("Ok")
|
||||||
KeyNavigation.tab: cancelButton
|
KeyNavigation.tab: cancelButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -36,13 +36,15 @@ TextArea {
|
|||||||
property bool error: false
|
property bool error: false
|
||||||
property bool addressValidation: false
|
property bool addressValidation: false
|
||||||
property bool wrapAnywhere: true
|
property bool wrapAnywhere: true
|
||||||
|
property int fontSize: 18 * scaleRatio
|
||||||
id: textArea
|
id: textArea
|
||||||
font.family: Style.fontRegular.name
|
font.family: Style.fontRegular
|
||||||
font.pixelSize: 18 * scaleRatio
|
font.pixelSize: fontSize
|
||||||
font.bold: false
|
font.bold: false
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
color: Style.defaultFontColor
|
color: Style.defaultFontColor
|
||||||
|
|
||||||
wrapMode: {
|
wrapMode: {
|
||||||
if(wrapAnywhere){
|
if(wrapAnywhere){
|
||||||
return Text.WrapAnywhere;
|
return Text.WrapAnywhere;
|
||||||
|
@ -131,7 +131,7 @@ Item {
|
|||||||
id: inputItem
|
id: inputItem
|
||||||
height: inputHeight * scaleRatio
|
height: inputHeight * scaleRatio
|
||||||
anchors.top: showingHeader ? inputLabel.bottom : parent.top
|
anchors.top: showingHeader ? inputLabel.bottom : parent.top
|
||||||
anchors.topMargin: showingHeader ? 12 * scaleRatio : 2
|
anchors.topMargin: showingHeader ? 12 * scaleRatio : 2 * scaleRatio
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -32,6 +32,7 @@ import "." 1.0
|
|||||||
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: lineditmulti
|
||||||
property alias text: multiLine.text
|
property alias text: multiLine.text
|
||||||
property alias placeholderText: placeholderLabel.text
|
property alias placeholderText: placeholderLabel.text
|
||||||
property alias inputLabelText: inputLabel.text
|
property alias inputLabelText: inputLabel.text
|
||||||
@ -43,6 +44,10 @@ ColumnLayout {
|
|||||||
property bool labelButtonVisible: false
|
property bool labelButtonVisible: false
|
||||||
property bool copyButton: false
|
property bool copyButton: false
|
||||||
property bool wrapAnywhere: true
|
property bool wrapAnywhere: true
|
||||||
|
property bool showingHeader: true
|
||||||
|
property bool showBorder: true
|
||||||
|
property int fontSize: 18 * scaleRatio
|
||||||
|
|
||||||
signal labelButtonClicked();
|
signal labelButtonClicked();
|
||||||
signal inputLabelLinkActivated();
|
signal inputLabelLinkActivated();
|
||||||
|
|
||||||
@ -52,6 +57,7 @@ ColumnLayout {
|
|||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: (inputLabel.height + 10) * scaleRatio
|
height: (inputLabel.height + 10) * scaleRatio
|
||||||
|
visible: showingHeader ? true : false
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: inputLabel
|
id: inputLabel
|
||||||
@ -91,11 +97,12 @@ ColumnLayout {
|
|||||||
id: multiLine
|
id: multiLine
|
||||||
readOnly: false
|
readOnly: false
|
||||||
addressValidation: true
|
addressValidation: true
|
||||||
anchors.top: inputLabelRect.bottom
|
anchors.top: parent.showingHeader ? inputLabelRect.bottom : parent.top
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
topPadding: 10 * scaleRatio
|
topPadding: parent.showingHeader ? 10 * scaleRatio : 0
|
||||||
bottomPadding: 10 * scaleRatio
|
bottomPadding: 10 * scaleRatio
|
||||||
wrapAnywhere: parent.wrapAnywhere
|
wrapAnywhere: parent.wrapAnywhere
|
||||||
|
fontSize: parent.fontSize
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: placeholderLabel
|
id: placeholderLabel
|
||||||
@ -125,6 +132,7 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
radius: 4
|
radius: 4
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
visible: lineditmulti.showBorder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,40 +28,57 @@
|
|||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import moneroComponents.Clipboard 1.0
|
import moneroComponents.Clipboard 1.0
|
||||||
|
import "." 1.0
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
clip: true
|
clip: true
|
||||||
boundsBehavior: ListView.StopAtBounds
|
boundsBehavior: ListView.StopAtBounds
|
||||||
highlightMoveDuration: 0
|
highlightMoveDuration: 0
|
||||||
|
highlightFollowsCurrentItem: true
|
||||||
|
anchors.topMargin: 0
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: delegate
|
id: delegate
|
||||||
height: 64
|
height: 74
|
||||||
|
color: 'transparent';
|
||||||
|
anchors.topMargin: 0
|
||||||
width: listView.width
|
width: listView.width
|
||||||
|
|
||||||
LineEdit {
|
LineEditMulti {
|
||||||
id: addressLine
|
id: addressLine
|
||||||
|
//borderDisabled: true
|
||||||
fontSize: 12
|
fontSize: 12
|
||||||
readOnly: true
|
readOnly: true
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: 5
|
anchors.leftMargin: 5
|
||||||
|
anchors.topMargin: 12
|
||||||
|
anchors.rightMargin: 40
|
||||||
|
anchors.bottomMargin: 0
|
||||||
onTextChanged: cursorPosition = 0
|
onTextChanged: cursorPosition = 0
|
||||||
text: address
|
text: address
|
||||||
showBorder: false
|
|
||||||
|
|
||||||
IconButton {
|
showingHeader: false
|
||||||
id: clipboardButton
|
showBorder: false
|
||||||
imageSource: "../images/copyToClipboard.png"
|
}
|
||||||
onClicked: {
|
|
||||||
console.log(addressLine.text + " copied to clipboard");
|
IconButton {
|
||||||
clipboard.setText(addressLine.text);
|
id: clipboardButton
|
||||||
appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3);
|
imageSource: "../images/copyToClipboard.png"
|
||||||
}
|
|
||||||
|
onClicked: {
|
||||||
|
console.log(addressLine.text + " copied to clipboard");
|
||||||
|
clipboard.setText(addressLine.text);
|
||||||
|
appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 0
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -85,7 +102,7 @@ ListView {
|
|||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: "#444444"
|
color: Style.greyFontColor
|
||||||
text: label
|
text: label
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,14 +113,46 @@ ListView {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: clipboardButton.width
|
anchors.rightMargin: clipboardButton.width
|
||||||
onClicked: listView.currentIndex = index
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onClicked: {
|
||||||
|
listView.currentIndex = index;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
width: 1
|
||||||
|
color: Style.grey
|
||||||
|
z: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
width: 1
|
||||||
|
color: Style.grey
|
||||||
|
z: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
color: Style.grey
|
||||||
|
height: 1
|
||||||
|
z: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: 3
|
||||||
|
color: 'white'
|
||||||
|
visible: listView.currentIndex == index
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
highlight: Rectangle {
|
|
||||||
height: 64
|
|
||||||
color: '#FF4304'
|
|
||||||
opacity: 0.2
|
|
||||||
z: 2
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.0
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Controls.Styles 1.4
|
import QtQuick.Controls.Styles 1.4
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
@ -44,9 +44,6 @@ import moneroComponents.SubaddressModel 1.0
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
id: pageReceive
|
id: pageReceive
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
property alias addressText : addressLine.text
|
|
||||||
property alias paymentIdText : paymentIdLine.text
|
|
||||||
property alias integratedAddressText : integratedAddressLine.text
|
|
||||||
property var model
|
property var model
|
||||||
property var current_address
|
property var current_address
|
||||||
property alias addressText : pageReceive.current_address
|
property alias addressText : pageReceive.current_address
|
||||||
@ -156,26 +153,69 @@ Rectangle {
|
|||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
spacing: 26 * scaleRatio
|
spacing: 20 * scaleRatio
|
||||||
property int labelWidth: 120 * scaleRatio
|
property int labelWidth: 120 * scaleRatio
|
||||||
property int editWidth: 400 * scaleRatio
|
property int editWidth: 400 * scaleRatio
|
||||||
property int lineEditFontSize: 12 * scaleRatio
|
property int lineEditFontSize: 12 * scaleRatio
|
||||||
property int qrCodeSize: 240 * scaleRatio
|
property int qrCodeSize: 240 * scaleRatio
|
||||||
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
<<<<<<< HEAD
|
|
||||||
id: addressRow
|
id: addressRow
|
||||||
|
spacing: 0
|
||||||
Label {
|
Label {
|
||||||
id: addressLabel
|
id: addressLabel
|
||||||
text: qsTr("Addresses") + translationManager.emptyString
|
text: qsTr("Addresses") + translationManager.emptyString
|
||||||
width: mainLayout.labelWidth
|
width: mainLayout.labelWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: header
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 10
|
||||||
|
|
||||||
|
height: 10
|
||||||
|
color: "#CC000000"
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 10
|
||||||
|
anchors.leftMargin: 10
|
||||||
|
|
||||||
|
height: 1
|
||||||
|
color: "#404040"
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
|
width: 10
|
||||||
|
height: 10
|
||||||
|
|
||||||
|
source: "../images/historyBorderRadius.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
width: 10
|
||||||
|
height: 10
|
||||||
|
|
||||||
|
source: "../images/historyBorderRadius.png"
|
||||||
|
rotation: 90
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: tableRect
|
id: tableRect
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 200
|
Layout.preferredHeight: 240
|
||||||
color: "#FFFFFF"
|
color: "transparent"
|
||||||
|
|
||||||
Scroll {
|
Scroll {
|
||||||
id: flickableScroll
|
id: flickableScroll
|
||||||
anchors.right: table.right
|
anchors.right: table.right
|
||||||
@ -183,6 +223,7 @@ Rectangle {
|
|||||||
anchors.bottom: table.bottom
|
anchors.bottom: table.bottom
|
||||||
flickable: table
|
flickable: table
|
||||||
}
|
}
|
||||||
|
|
||||||
SubaddressTable {
|
SubaddressTable {
|
||||||
id: table
|
id: table
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@ -195,11 +236,10 @@ Rectangle {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 20
|
spacing: 20
|
||||||
|
Layout.topMargin: 20
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
shadowReleasedColor: "#FF4304"
|
small: true
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
text: qsTr("Create new address") + translationManager.emptyString;
|
text: qsTr("Create new address") + translationManager.emptyString;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
inputDialog.labelText = qsTr("Set the label of the new address:") + translationManager.emptyString
|
inputDialog.labelText = qsTr("Set the label of the new address:") + translationManager.emptyString
|
||||||
@ -213,10 +253,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
StandardButton {
|
StandardButton {
|
||||||
shadowReleasedColor: "#FF4304"
|
small: true
|
||||||
shadowPressedColor: "#B32D00"
|
|
||||||
releasedColor: "#FF6C3C"
|
|
||||||
pressedColor: "#FF4304"
|
|
||||||
enabled: table.currentIndex > 0
|
enabled: table.currentIndex > 0
|
||||||
text: qsTr("Rename") + translationManager.emptyString;
|
text: qsTr("Rename") + translationManager.emptyString;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -224,123 +261,42 @@ Rectangle {
|
|||||||
inputDialog.inputText = appWindow.currentWallet.getSubaddressLabel(appWindow.currentWallet.currentSubaddressAccount, table.currentIndex)
|
inputDialog.inputText = appWindow.currentWallet.getSubaddressLabel(appWindow.currentWallet.currentSubaddressAccount, table.currentIndex)
|
||||||
inputDialog.onAcceptedCallback = function() {
|
inputDialog.onAcceptedCallback = function() {
|
||||||
appWindow.currentWallet.subaddress.setLabel(appWindow.currentWallet.currentSubaddressAccount, table.currentIndex, inputDialog.inputText)
|
appWindow.currentWallet.subaddress.setLabel(appWindow.currentWallet.currentSubaddressAccount, table.currentIndex, inputDialog.inputText)
|
||||||
=======
|
|
||||||
id: addressLineRow
|
|
||||||
|
|
||||||
LineEditMulti {
|
|
||||||
id: addressLine
|
|
||||||
inputLabelText: qsTr("Address") + translationManager.emptyString
|
|
||||||
placeholderText: qsTr("ReadOnly wallet address displayed here") + translationManager.emptyString;
|
|
||||||
readOnly: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
copyButton: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout {
|
|
||||||
id: paymentIdRow
|
|
||||||
columns:2
|
|
||||||
|
|
||||||
// @TODO: copy button copies the wrong input box
|
|
||||||
LineEdit {
|
|
||||||
id: paymentIdLine
|
|
||||||
placeholderText: qsTr("16 hexadecimal characters") + translationManager.emptyString;
|
|
||||||
readOnly: false
|
|
||||||
onTextChanged: updatePaymentId(paymentIdLine.text)
|
|
||||||
inlineButtonText: "Generate"
|
|
||||||
inlineButton.onClicked: updatePaymentId()
|
|
||||||
width: mainLayout.editWidth
|
|
||||||
Layout.fillWidth: true
|
|
||||||
copyButton: true
|
|
||||||
labelText: qsTr("Payment ID") + qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
|
|
||||||
<font size='2'> ( </font><a href='#'>help</a><font size='2'> )</font> ")
|
|
||||||
+ translationManager.emptyString
|
|
||||||
onLabelLinkActivated: {
|
|
||||||
trackingHowToUseDialog.title = qsTr("Tracking payments") + translationManager.emptyString;
|
|
||||||
trackingHowToUseDialog.text = qsTr(
|
|
||||||
"<p><font size='+2'>This is a simple sales tracker:</font></p>" +
|
|
||||||
"<p>Click Generate to create a random payment id for a new customer</p> " +
|
|
||||||
"<p>Let your customer scan that QR code to make a payment (if that customer has software which " +
|
|
||||||
"supports QR code scanning).</p>" +
|
|
||||||
"<p>This page will automatically scan the blockchain and the tx pool " +
|
|
||||||
"for incoming transactions using this QR code. If you input an amount, it will also check " +
|
|
||||||
"that incoming transactions total up to that amount.</p>" +
|
|
||||||
"It's up to you whether to accept unconfirmed transactions or not. It is likely they'll be " +
|
|
||||||
"confirmed in short order, but there is still a possibility they might not, so for larger " +
|
|
||||||
"values you may want to wait for one or more confirmation(s).</p>"
|
|
||||||
)
|
|
||||||
trackingHowToUseDialog.icon = StandardIcon.Information
|
|
||||||
trackingHowToUseDialog.open()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// @TODO: CLEAR BUTTON should be present as labelButton
|
|
||||||
// StandardButton {
|
|
||||||
// id: clearPaymentId
|
|
||||||
// enabled: !!paymentIdLine.text
|
|
||||||
// shadowReleasedColor: "#FF4304"
|
|
||||||
// shadowPressedColor: "#B32D00"
|
|
||||||
// releasedColor: "#FF6C3C"
|
|
||||||
// pressedColor: "#FF4304"
|
|
||||||
// text: qsTr("Clear") + translationManager.emptyString;
|
|
||||||
// onClicked: updatePaymentId("")
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: integratedAddressRow
|
|
||||||
|
|
||||||
LineEditMulti {
|
|
||||||
id: integratedAddressLine
|
|
||||||
inputLabelText: qsTr("Integrated address") + translationManager.emptyString
|
|
||||||
placeholderText: qsTr("Generate payment ID for integrated address") + translationManager.emptyString
|
|
||||||
readOnly: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
copyButton: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout {
|
|
||||||
columns: (isMobile)? 1 : 2
|
|
||||||
Layout.fillWidth: true
|
|
||||||
columnSpacing: 32
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.minimumWidth: 200
|
|
||||||
LineEdit {
|
|
||||||
id: amountLine
|
|
||||||
placeholderText: qsTr("Amount to receive") + translationManager.emptyString
|
|
||||||
readOnly: false
|
|
||||||
inlineIcon: true
|
|
||||||
labelText: qsTr("Amount")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
validator: DoubleValidator {
|
|
||||||
bottom: 0.0
|
|
||||||
top: 18446744.073709551615
|
|
||||||
decimals: 12
|
|
||||||
notation: DoubleValidator.StandardNotation
|
|
||||||
locale: "C"
|
|
||||||
>>>>>>> Receive page development
|
|
||||||
}
|
}
|
||||||
inputDialog.onRejectedCallback = null;
|
inputDialog.onRejectedCallback = null;
|
||||||
inputDialog.open()
|
inputDialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ColumnLayout {
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: amountRow
|
||||||
|
Label {
|
||||||
|
id: amountLabel
|
||||||
|
text: qsTr("Amount") + translationManager.emptyString
|
||||||
|
width: mainLayout.labelWidth
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
LineEdit {
|
||||||
|
id: amountLine
|
||||||
|
placeholderText: qsTr("Amount to receive") + translationManager.emptyString
|
||||||
|
readOnly: false
|
||||||
|
width: mainLayout.editWidth
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
validator: DoubleValidator {
|
||||||
|
bottom: 0.0
|
||||||
|
top: 18446744.073709551615
|
||||||
|
decimals: 12
|
||||||
|
notation: DoubleValidator.StandardNotation
|
||||||
|
locale: "C"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
ColumnLayout {
|
||||||
id: trackingRow
|
id: trackingRow
|
||||||
Layout.fillWidth: true
|
|
||||||
visible: !isAndroid && !isIOS
|
visible: !isAndroid && !isIOS
|
||||||
<<<<<<< HEAD
|
|
||||||
Label {
|
Label {
|
||||||
id: trackingLabel
|
id: trackingLabel
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
@ -368,41 +324,17 @@ Rectangle {
|
|||||||
trackingHowToUseDialog.open()
|
trackingHowToUseDialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
>>>>>>> Receive page development
|
|
||||||
|
|
||||||
TextEdit {
|
TextEdit {
|
||||||
id: trackingLine
|
id: trackingLine
|
||||||
anchors.top: trackingRow.top
|
readOnly: true
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
width: mainLayout.editWidth
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
text: ""
|
text: ""
|
||||||
readOnly: true
|
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
color: Style.defaultFontColor
|
color: 'white'
|
||||||
font.family: Style.fontRegular.name
|
|
||||||
font.pixelSize: 16 * scaleRatio
|
|
||||||
leftPadding: 12 * scaleRatio
|
|
||||||
rightPadding: 12 * scaleRatio
|
|
||||||
topPadding: 8 * scaleRatio
|
|
||||||
bottomPadding: 8 * scaleRatio
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
border.width: 1
|
|
||||||
border.color: {
|
|
||||||
if(trackingLine.activeFocus){
|
|
||||||
return Qt.rgba(255, 255, 255, 0.35);
|
|
||||||
} else {
|
|
||||||
return Qt.rgba(255, 255, 255, 0.25);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
radius: 4
|
|
||||||
anchors.fill: parent
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageDialog {
|
MessageDialog {
|
||||||
|
@ -574,17 +574,20 @@ Rectangle {
|
|||||||
|
|
||||||
TextBlock {
|
TextBlock {
|
||||||
Layout.topMargin: 8
|
Layout.topMargin: 8
|
||||||
|
font.pixelSize: 14
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: qsTr("GUI version: ") + Version.GUI_VERSION + translationManager.emptyString
|
text: qsTr("GUI version: ") + Version.GUI_VERSION + translationManager.emptyString
|
||||||
}
|
}
|
||||||
TextBlock {
|
TextBlock {
|
||||||
id: guiMoneroVersion
|
id: guiMoneroVersion
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
font.pixelSize: 14
|
||||||
text: qsTr("Embedded Monero version: ") + Version.GUI_MONERO_VERSION + translationManager.emptyString
|
text: qsTr("Embedded Monero version: ") + Version.GUI_MONERO_VERSION + translationManager.emptyString
|
||||||
}
|
}
|
||||||
TextBlock {
|
TextBlock {
|
||||||
id: restoreHeightText
|
id: restoreHeightText
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
font.pixelSize: 14
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
property var txt: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C}</style>" + qsTr("Wallet creation height: ") + (currentWallet ? currentWallet.walletCreationHeight : "") + translationManager.emptyString
|
property var txt: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C}</style>" + qsTr("Wallet creation height: ") + (currentWallet ? currentWallet.walletCreationHeight : "") + translationManager.emptyString
|
||||||
property var linkTxt: qsTr(" <a href='#'>(Click to change)</a>") + translationManager.emptyString
|
property var linkTxt: qsTr(" <a href='#'>(Click to change)</a>") + translationManager.emptyString
|
||||||
@ -652,14 +655,17 @@ Rectangle {
|
|||||||
|
|
||||||
TextBlock {
|
TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
font.pixelSize: 14
|
||||||
text: (!currentWallet) ? "" : qsTr("Wallet log path: ") + currentWallet.walletLogPath + translationManager.emptyString
|
text: (!currentWallet) ? "" : qsTr("Wallet log path: ") + currentWallet.walletLogPath + translationManager.emptyString
|
||||||
}
|
}
|
||||||
TextBlock {
|
TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
font.pixelSize: 14
|
||||||
text: qsTr("Wallet Name: ") + walletName + translationManager.emptyString
|
text: qsTr("Wallet Name: ") + walletName + translationManager.emptyString
|
||||||
}
|
}
|
||||||
TextBlock {
|
TextBlock {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
font.pixelSize: 14
|
||||||
text: (!currentWallet) ? "" : qsTr("Daemon log path: ") + currentWallet.daemonLogPath + translationManager.emptyString
|
text: (!currentWallet) ? "" : qsTr("Daemon log path: ") + currentWallet.daemonLogPath + translationManager.emptyString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user