QML: fix various warnings

This commit is contained in:
selsta 2019-07-21 21:51:47 +02:00
parent 705439c78b
commit f20ab12cf3
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
9 changed files with 14 additions and 35 deletions

View file

@ -114,13 +114,12 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: (persistentSettings.customDecorations)? 50 : 0 anchors.topMargin: (persistentSettings.customDecorations)? 50 : 0
RowLayout { Item {
Item { Item {
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 20 anchors.topMargin: 20
anchors.leftMargin: 20 anchors.leftMargin: 20
anchors.verticalCenter: parent.verticalCenter
height: 490 height: 490
width: 260 width: 260
@ -230,7 +229,6 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 20 anchors.topMargin: 20
anchors.leftMargin: 20 anchors.leftMargin: 20
anchors.verticalCenter: parent.verticalCenter
height: 490 height: 490
width: 50 width: 50

View file

@ -34,8 +34,6 @@ import "../components/effects/" as MoneroEffects
Label { Label {
id: item id: item
fontSize: 18 fontSize: 18
anchors.left: parent.left
anchors.right: parent.right
Rectangle { Rectangle {
anchors.top: item.bottom anchors.top: item.bottom

View file

@ -177,7 +177,7 @@ Rectangle {
ListView { ListView {
id: subaddressAccountListView id: subaddressAccountListView
Layout.fillWidth: true Layout.fillWidth: true
anchors.fill: parent Layout.fillHeight: true
clip: true clip: true
boundsBehavior: ListView.StopAtBounds boundsBehavior: ListView.StopAtBounds
interactive: false interactive: false

View file

@ -251,7 +251,6 @@ Rectangle {
font.pixelSize: 15 font.pixelSize: 15
text: qsTr("Blockheight") + translationManager.emptyString text: qsTr("Blockheight") + translationManager.emptyString
color: root.sortBy === "blockheight" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor color: root.sortBy === "blockheight" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor
anchors.verticalCenter: parent.verticalCenter
themeTransition: false themeTransition: false
} }
@ -312,7 +311,6 @@ Rectangle {
text: qsTr("Date") + translationManager.emptyString text: qsTr("Date") + translationManager.emptyString
color: root.sortBy === "timestamp" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor color: root.sortBy === "timestamp" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor
themeTransition: false themeTransition: false
anchors.verticalCenter: parent.verticalCenter
} }
MoneroEffects.ImageMask { MoneroEffects.ImageMask {
@ -372,7 +370,6 @@ Rectangle {
text: qsTr("Amount") + translationManager.emptyString text: qsTr("Amount") + translationManager.emptyString
color: root.sortBy === "amount" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor color: root.sortBy === "amount" ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor
themeTransition: false themeTransition: false
anchors.verticalCenter: parent.verticalCenter
} }
MoneroEffects.ImageMask { MoneroEffects.ImageMask {

View file

@ -101,7 +101,7 @@ Rectangle {
ListView { ListView {
id: subaddressListView id: subaddressListView
Layout.fillWidth: true Layout.fillWidth: true
anchors.fill: parent Layout.fillHeight: true
clip: true clip: true
boundsBehavior: ListView.StopAtBounds boundsBehavior: ListView.StopAtBounds
interactive: false interactive: false

View file

@ -93,9 +93,8 @@ Item {
anchors.right: parent.right anchors.right: parent.right
Item { Item {
height: 220 Layout.preferredHeight: 220
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
Rectangle { Rectangle {
id: tracker id: tracker
@ -258,8 +257,7 @@ Item {
Item { Item {
Layout.preferredHeight: 40 Layout.preferredHeight: 40
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
Item { Item {
width: (parent.width - qrImg.width) - (50) width: (parent.width - qrImg.width) - (50)
@ -524,8 +522,7 @@ Item {
Item { Item {
Layout.topMargin: 32 Layout.topMargin: 32
Layout.preferredHeight: 40 Layout.preferredHeight: 40
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
ColumnLayout { ColumnLayout {
spacing: 16 spacing: 16

View file

@ -97,23 +97,12 @@ ColumnLayout {
TextInput { TextInput {
id: progressText id: progressText
anchors.top: parent.top Layout.topMargin: 6
anchors.topMargin: 6 Layout.bottomMargin: 6
font.family: MoneroComponents.Style.fontMedium.name font.family: MoneroComponents.Style.fontMedium.name
font.pixelSize: 14 font.pixelSize: 14
font.bold: false font.bold: false
color: MoneroComponents.Style.defaultFontColor color: MoneroComponents.Style.defaultFontColor
text: root.passwordStrengthText + '-'
height: 18
passwordCharacter: "*"
}
TextInput {
id: progressTextValue
font.family: MoneroComponents.Style.fontMedium.name
font.pixelSize: 13
font.bold: true
color: MoneroComponents.Style.defaultFontColor
height: 18 height: 18
passwordCharacter: "*" passwordCharacter: "*"
} }

View file

@ -69,7 +69,7 @@ ColumnLayout {
TextArea { TextArea {
Layout.fillWidth: true Layout.fillWidth: true
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignCenter
visible: parent.subtitle !== "" visible: parent.subtitle !== ""
color: MoneroComponents.Style.dimmedFontColor color: MoneroComponents.Style.dimmedFontColor

View file

@ -60,7 +60,7 @@ Rectangle {
id: textWelcome id: textWelcome
opacity: 0 opacity: 0
Layout.preferredWidth: parent.width / 1.3 Layout.preferredWidth: parent.width / 1.3
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignCenter
color: MoneroComponents.Style.defaultFontColor color: MoneroComponents.Style.defaultFontColor
text: "Welcome - Wilkommen - Bonvenon - Bienvenido - Bienvenue - Välkommen - Selamat datang - Benvenuto - 歡迎 - Welkom - Bem Vindo - добро пожаловать" text: "Welcome - Wilkommen - Bonvenon - Bienvenido - Bienvenue - Välkommen - Selamat datang - Benvenuto - 歡迎 - Welkom - Bem Vindo - добро пожаловать"
@ -97,7 +97,7 @@ Rectangle {
} }
Layout.preferredWidth: size Layout.preferredWidth: size
Layout.preferredHeight: size Layout.preferredHeight: size
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignCenter
mipmap: true mipmap: true
property bool animSlow: false property bool animSlow: false
@ -149,7 +149,7 @@ Rectangle {
id: buttonsGrid id: buttonsGrid
opacity: 0 opacity: 0
columns: isMobile ? 1 : 2 columns: isMobile ? 1 : 2
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignCenter
Layout.topMargin: 20 Layout.topMargin: 20
Layout.fillWidth: true Layout.fillWidth: true
columnSpacing: 20 columnSpacing: 20
@ -190,7 +190,7 @@ Rectangle {
MoneroComponents.TextPlain { MoneroComponents.TextPlain {
id: versionText id: versionText
opacity: 0 opacity: 0
anchors.horizontalCenter: parent.horizontalCenter Layout.alignment: Qt.AlignCenter
font.bold: true font.bold: true
font.pixelSize: 12 font.pixelSize: 12
font.family: MoneroComponents.Style.fontRegular.name font.family: MoneroComponents.Style.fontRegular.name