Skip to content

Commit 83d39c8

Browse files
committed
Changed qml code to be compatible with Venus 2.30~xx
1 parent 7ad8fbf commit 83d39c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

software/qml/PageSettingsTsmppt.qml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ MbPage {
1111
MbEditBox {
1212
id: ipaddress
1313
description: qsTr("Hostname/IP Address")
14-
bind: Utils.path(settings, "/Settings/TristarMPPT/IPAddress")
15-
text: hostItem.value
14+
item.bind: Utils.path(settings, "/Settings/TristarMPPT/IPAddress")
15+
item.value: hostItem.value
1616

1717
VBusItem {
1818
id: hostItem
@@ -24,8 +24,8 @@ MbPage {
2424
id: portnumber
2525
description: qsTr("Modbus IP Port")
2626
matchString: "0123456789"
27-
text: portNumberItem.valid ? Utils.pad(portNumberItem.value, 5) : '--'
28-
onTextChanged: portNumberItem.setValue(parseInt(text, 10));
27+
item.value: portNumberItem.valid ? Utils.pad(portNumberItem.value, 5) : '--'
28+
onEditDone: portNumberItem.setValue(parseInt(text, 10));
2929

3030
VBusItem {
3131
id: portNumberItem

0 commit comments

Comments
 (0)