Skip to content

Commit 49d9ac2

Browse files
committed
fix: SpinBox supports keyboard input
SpinBox supports keyboard input pms: BUG-286729
1 parent 51ff331 commit 49d9ac2

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

dcc-network/qml/SectionDevice.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ DccTitleObject {
180180
visible: hasMTU
181181
pageType: DccObject.Editor
182182
page: D.SpinBox {
183+
editable: true
183184
value: root.config.hasOwnProperty("mtu") ? root.config.mtu : 0
184185
onValueChanged: {
185186
if (hasMTU && (!root.config.hasOwnProperty("mtu") || root.config.mtu !== value)) {

dcc-network/qml/SectionIPv6.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ DccObject {
321321
displayName: qsTr("Prefix")
322322
pageType: DccObject.Editor
323323
page: D.SpinBox {
324+
editable: true
324325
value: root.addressData.length > index ? root.addressData[index].prefix : 64
325326
from: 0
326327
to: 128

dcc-network/qml/SectionVPN.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,7 @@ DccTitleObject {
14581458
visible: root.dataMap.hasOwnProperty("port")
14591459
pageType: DccObject.Editor
14601460
page: D.SpinBox {
1461+
editable: true
14611462
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 1194
14621463
from: 0
14631464
to: 65535
@@ -1496,6 +1497,7 @@ DccTitleObject {
14961497
visible: root.dataMap.hasOwnProperty("reneg-seconds")
14971498
pageType: DccObject.Editor
14981499
page: D.SpinBox {
1500+
editable: true
14991501
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 0
15001502
from: 0
15011503
to: 65535
@@ -1569,6 +1571,7 @@ DccTitleObject {
15691571
visible: root.dataMap.hasOwnProperty("tunnel-mtu")
15701572
pageType: DccObject.Editor
15711573
page: D.SpinBox {
1574+
editable: true
15721575
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 1500
15731576
from: 0
15741577
to: 65535
@@ -1607,6 +1610,7 @@ DccTitleObject {
16071610
visible: root.dataMap.hasOwnProperty("fragment-size")
16081611
pageType: DccObject.Editor
16091612
page: D.SpinBox {
1613+
editable: true
16101614
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 1300
16111615
from: 0
16121616
to: 65535
@@ -1819,6 +1823,7 @@ DccTitleObject {
18191823
weight: 80
18201824
pageType: DccObject.Editor
18211825
page: D.SpinBox {
1826+
editable: true
18221827
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 0
18231828
from: 0
18241829
to: 65535
@@ -2048,6 +2053,7 @@ DccTitleObject {
20482053
visible: root.dataMap["proxy-type"] !== "none"
20492054
pageType: DccObject.Editor
20502055
page: D.SpinBox {
2056+
editable: true
20512057
value: root.dataMap.hasOwnProperty(dccObj.name) ? parseInt(root.dataMap[dccObj.name], 10) : 0
20522058
from: 0
20532059
to: 65535

0 commit comments

Comments
 (0)