mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: Fix QML Warnings.
Fix some runtime warnings when running the mobile build caused by binding loops and deprecated handler syntax. Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
parent
d9f50bb8e0
commit
a39f0e2891
6 changed files with 22 additions and 15 deletions
|
@ -110,7 +110,9 @@ Kirigami.Page {
|
|||
model: statsManager.var1List
|
||||
currentIndex: statsManager.var1Index
|
||||
onCurrentIndexChanged: {
|
||||
statsManager.var1Changed(currentIndex)
|
||||
if (currentIndex != statsManager.var1Index) {
|
||||
statsManager.var1Changed(currentIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +129,9 @@ Kirigami.Page {
|
|||
model: statsManager.binner1List
|
||||
currentIndex: statsManager.binner1Index
|
||||
onCurrentIndexChanged: {
|
||||
statsManager.var1BinnerChanged(currentIndex)
|
||||
if (currentIndex != statsManager.binner1Index) {
|
||||
statsManager.var1BinnerChanged(currentIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +149,9 @@ Kirigami.Page {
|
|||
currentIndex: statsManager.var2Index
|
||||
Layout.fillWidth: false
|
||||
onCurrentIndexChanged: {
|
||||
statsManager.var2Changed(currentIndex)
|
||||
if (currentIndex != statsManager.var2Index) {
|
||||
statsManager.var2Changed(currentIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +169,9 @@ Kirigami.Page {
|
|||
currentIndex: statsManager.binner2Index
|
||||
Layout.fillWidth: false
|
||||
onCurrentIndexChanged: {
|
||||
statsManager.var2BinnerChanged(currentIndex)
|
||||
if (currentIndex != statsManager.binner2Index) {
|
||||
statsManager.var2BinnerChanged(currentIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -181,7 +189,9 @@ Kirigami.Page {
|
|||
currentIndex: statsManager.operation2Index
|
||||
Layout.fillWidth: false
|
||||
onCurrentIndexChanged: {
|
||||
statsManager.var2OperationChanged(currentIndex)
|
||||
if (currentIndex != statsManager.operation2Index) {
|
||||
statsManager.var2OperationChanged(currentIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue