Merge pull request #2948

53066ae QML: fix some Qt 5.15 warnings (selsta)
This commit is contained in:
luigi1111 2020-07-08 13:35:55 -05:00
commit be5e6772a4
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
5 changed files with 7 additions and 7 deletions

View file

@ -265,11 +265,11 @@ Rectangle {
Connections { Connections {
ignoreUnknownSignals: false ignoreUnknownSignals: false
target: transferView target: transferView
onPaymentClicked : { function paymentClicked(address, paymentId, amount, mixinCount, priority, description) {
console.log("MiddlePanel: paymentClicked") console.log("MiddlePanel: paymentClicked")
paymentClicked(address, paymentId, amount, mixinCount, priority, description) paymentClicked(address, paymentId, amount, mixinCount, priority, description)
} }
onSweepUnmixableClicked : { function onSweepUnmixableClicked() {
console.log("MiddlePanel: sweepUnmixableClicked") console.log("MiddlePanel: sweepUnmixableClicked")
sweepUnmixableClicked() sweepUnmixableClicked()
} }

View file

@ -117,7 +117,7 @@ Item {
Connections { Connections {
target: datePicker target: datePicker
onCurrentDateChanged: { function onCurrentDateChanged() {
dateInput.setDate(datePicker.currentDate) dateInput.setDate(datePicker.currentDate)
} }
} }

View file

@ -186,7 +186,7 @@ Rectangle {
delegate: Rectangle { delegate: Rectangle {
id: tableItem2 id: tableItem2
height: subaddressAccountListRow.subaddressAccountListItemHeight height: subaddressAccountListRow.subaddressAccountListItemHeight
width: parent.width width: parent ? parent.width : undefined
Layout.fillWidth: true Layout.fillWidth: true
color: "transparent" color: "transparent"

View file

@ -569,8 +569,8 @@ Rectangle {
delegate: Rectangle { delegate: Rectangle {
id: delegate id: delegate
property bool collapsed: root.txDataCollapsed.indexOf(hash) >= 0 ? true : false property bool collapsed: root.txDataCollapsed.indexOf(hash) >= 0 ? true : false
anchors.left: parent.left anchors.left: parent ? parent.left : undefined
anchors.right: parent.right anchors.right: parent ? parent.right : undefined
height: { height: {
if(!collapsed) return 60; if(!collapsed) return 60;
if(isout && delegate.address !== "") return 320; if(isout && delegate.address !== "") return 320;

View file

@ -105,7 +105,7 @@ Rectangle {
delegate: Rectangle { delegate: Rectangle {
id: tableItem2 id: tableItem2
height: subaddressListRow.subaddressListItemHeight height: subaddressListRow.subaddressListItemHeight
width: parent.width width: parent ? parent.width : undefined
Layout.fillWidth: true Layout.fillWidth: true
color: "transparent" color: "transparent"