mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
fix various QML warnings
This commit is contained in:
parent
59fc48bd8b
commit
515bb16418
9 changed files with 18 additions and 40 deletions
|
@ -57,7 +57,6 @@ RowLayout {
|
||||||
height: label.height
|
height: label.height
|
||||||
width: (label.width + indicatorRect.width + checkBox.textMargin)
|
width: (label.width + indicatorRect.width + checkBox.textMargin)
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.left: parent.left
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: label
|
id: label
|
||||||
|
|
|
@ -149,7 +149,6 @@ ColumnLayout {
|
||||||
id: input
|
id: input
|
||||||
readOnly: false
|
readOnly: false
|
||||||
addressValidation: false
|
addressValidation: false
|
||||||
anchors.top: item.showingHeader ? inputLabelRect.bottom : item.top
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
topPadding: item.showingHeader ? 10 * scaleRatio : 0
|
topPadding: item.showingHeader ? 10 * scaleRatio : 0
|
||||||
bottomPadding: 10 * scaleRatio
|
bottomPadding: 10 * scaleRatio
|
||||||
|
|
|
@ -57,7 +57,6 @@ Rectangle {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: iconItem
|
id: iconItem
|
||||||
anchors.top: parent.top
|
|
||||||
width: 40 * scaleRatio
|
width: 40 * scaleRatio
|
||||||
height: 40 * scaleRatio
|
height: 40 * scaleRatio
|
||||||
opacity: {
|
opacity: {
|
||||||
|
@ -84,8 +83,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: iconItem.right
|
|
||||||
height: 40 * scaleRatio
|
height: 40 * scaleRatio
|
||||||
width: 260 * scaleRatio
|
width: 260 * scaleRatio
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,6 @@ Item {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: root.walletName.length > 0 ? qsTr("Please enter wallet password for: ") + root.walletName : qsTr("Please enter wallet password")
|
text: root.walletName.length > 0 ? qsTr("Please enter wallet password for: ") + root.walletName : qsTr("Please enter wallet password")
|
||||||
anchors.left: parent.left
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
font.pixelSize: 16 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
|
@ -104,7 +103,6 @@ Item {
|
||||||
text: root.errorText
|
text: root.errorText
|
||||||
visible: root.errorText
|
visible: root.errorText
|
||||||
|
|
||||||
anchors.left: parent.left
|
|
||||||
color: MoneroComponents.Style.errorColor
|
color: MoneroComponents.Style.errorColor
|
||||||
font.pixelSize: 16 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
font.family: MoneroComponents.Style.fontLight.name
|
font.family: MoneroComponents.Style.fontLight.name
|
||||||
|
@ -116,7 +114,6 @@ Item {
|
||||||
id : passwordInput
|
id : passwordInput
|
||||||
Layout.topMargin: 6
|
Layout.topMargin: 6
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
anchors.left: parent.left
|
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
font.family: MoneroComponents.Style.fontLight.name
|
font.family: MoneroComponents.Style.fontLight.name
|
||||||
|
|
|
@ -244,7 +244,6 @@ Rectangle {
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: resolveButton
|
id: resolveButton
|
||||||
anchors.left: parent.left
|
|
||||||
width: 80
|
width: 80
|
||||||
text: qsTr("Resolve") + translationManager.emptyString
|
text: qsTr("Resolve") + translationManager.emptyString
|
||||||
visible: isValidOpenAliasAddress(addressLine.text)
|
visible: isValidOpenAliasAddress(addressLine.text)
|
||||||
|
|
|
@ -55,9 +55,6 @@ Rectangle {
|
||||||
// solo
|
// solo
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: soloBox
|
id: soloBox
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: parent.top
|
|
||||||
spacing: 20 * scaleRatio
|
spacing: 20 * scaleRatio
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
@ -114,8 +111,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
anchors.left: parent.left
|
Layout.topMargin: 17 * scaleRatio
|
||||||
anchors.topMargin: 17 * scaleRatio
|
|
||||||
width: 60 * scaleRatio
|
width: 60 * scaleRatio
|
||||||
small: true
|
small: true
|
||||||
text: qsTr("Generate") + translationManager.emptyString
|
text: qsTr("Generate") + translationManager.emptyString
|
||||||
|
@ -204,8 +200,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
anchors.left: parent.left
|
Layout.topMargin: 17 * scaleRatio
|
||||||
anchors.topMargin: 17 * scaleRatio
|
|
||||||
width: 60
|
width: 60
|
||||||
small: true
|
small: true
|
||||||
text: qsTr("Check") + translationManager.emptyString
|
text: qsTr("Check") + translationManager.emptyString
|
||||||
|
|
|
@ -374,11 +374,8 @@ Rectangle{
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: localNodeLayout
|
id: localNodeLayout
|
||||||
anchors.margins: 0
|
|
||||||
spacing: 20 * scaleRatio
|
spacing: 20 * scaleRatio
|
||||||
Layout.topMargin: 40
|
Layout.topMargin: 40
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
visible: !isMobile && !persistentSettings.useRemoteNode
|
visible: !isMobile && !persistentSettings.useRemoteNode
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
@ -66,7 +66,7 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -157,7 +157,7 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -248,7 +248,7 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -337,7 +337,7 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
|
@ -328,10 +328,9 @@ ColumnLayout {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: prevButton
|
id: prevButton
|
||||||
anchors.verticalCenter: wizard.verticalCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
|
||||||
anchors.left: parent.left
|
Layout.leftMargin: isMobile ? 20 : 50
|
||||||
anchors.leftMargin: isMobile ? 20 : 50
|
Layout.bottomMargin: isMobile ? 20 * scaleRatio : 50
|
||||||
anchors.bottomMargin: isMobile ? 20 * scaleRatio : 50
|
|
||||||
visible: parent.currentPage > 0
|
visible: parent.currentPage > 0
|
||||||
|
|
||||||
width: 50 * scaleRatio; height: 50 * scaleRatio
|
width: 50 * scaleRatio; height: 50 * scaleRatio
|
||||||
|
@ -354,10 +353,9 @@ ColumnLayout {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: nextButton
|
id: nextButton
|
||||||
anchors.verticalCenter: wizard.verticalCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
||||||
anchors.right: parent.right
|
Layout.rightMargin: isMobile ? 20 * scaleRatio : 50
|
||||||
anchors.rightMargin: isMobile ? 20 * scaleRatio : 50
|
Layout.bottomMargin: isMobile ? 20 * scaleRatio : 50
|
||||||
anchors.bottomMargin: isMobile ? 20 * scaleRatio : 50
|
|
||||||
visible: currentPage > 1 && currentPage < pages.length - 1
|
visible: currentPage > 1 && currentPage < pages.length - 1
|
||||||
width: 50 * scaleRatio; height: 50 * scaleRatio
|
width: 50 * scaleRatio; height: 50 * scaleRatio
|
||||||
radius: 25
|
radius: 25
|
||||||
|
@ -380,9 +378,8 @@ ColumnLayout {
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: sendButton
|
id: sendButton
|
||||||
anchors.right: parent.right
|
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
|
||||||
anchors.bottom: parent.bottom
|
Layout.margins: (isMobile) ? 20 * scaleRatio : 50 * scaleRatio
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50 * scaleRatio
|
|
||||||
text: qsTr("USE MONERO") + translationManager.emptyString
|
text: qsTr("USE MONERO") + translationManager.emptyString
|
||||||
visible: parent.paths[currentPath][currentPage] === finishPage
|
visible: parent.paths[currentPath][currentPage] === finishPage
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -393,9 +390,8 @@ ColumnLayout {
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: createViewOnlyWalletButton
|
id: createViewOnlyWalletButton
|
||||||
anchors.right: parent.right
|
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
|
||||||
anchors.bottom: parent.bottom
|
Layout.margins: (isMobile) ? 20 * scaleRatio : 50
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
|
||||||
text: qsTr("Create wallet") + translationManager.emptyString
|
text: qsTr("Create wallet") + translationManager.emptyString
|
||||||
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
||||||
enabled: passwordPage.passwordsMatch
|
enabled: passwordPage.passwordsMatch
|
||||||
|
@ -421,9 +417,8 @@ ColumnLayout {
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: abortViewOnlyButton
|
id: abortViewOnlyButton
|
||||||
anchors.right: createViewOnlyWalletButton.left
|
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
|
||||||
anchors.bottom: parent.bottom
|
Layout.margins: (isMobile) ? 20 * scaleRatio : 50
|
||||||
anchors.margins: (isMobile) ? 20 * scaleRatio : 50
|
|
||||||
text: qsTr("Abort") + translationManager.emptyString
|
text: qsTr("Abort") + translationManager.emptyString
|
||||||
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
visible: currentPath === "create_view_only_wallet" && parent.paths[currentPath][currentPage] === passwordPage
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
Loading…
Reference in a new issue