fix: SpinBox supports keyboard input#365
Conversation
Reviewer's GuideThis PR enables direct keyboard input for all D.SpinBox instances by adding the editable property across the VPN, Device, and IPv6 QML sections. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @caixr23 - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `dcc-network/qml/SectionVPN.qml:1461` </location>
<code_context>
visible: hasMTU
pageType: DccObject.Editor
page: D.SpinBox {
+ editable: true
value: root.config.hasOwnProperty("mtu") ? root.config.mtu : 0
onValueChanged: {
</code_context>
<issue_to_address>
Consider if all D.SpinBox fields should be editable by default.
Review whether 'editable' should be the default for D.SpinBox to avoid repetitive code and ensure consistency, unless there are valid cases for non-editable instances.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| visible: root.dataMap.hasOwnProperty("port") | ||
| pageType: DccObject.Editor | ||
| page: D.SpinBox { | ||
| editable: true |
There was a problem hiding this comment.
suggestion: Consider if all D.SpinBox fields should be editable by default.
Review whether 'editable' should be the default for D.SpinBox to avoid repetitive code and ensure consistency, unless there are valid cases for non-editable instances.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23, xionglinlin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
SpinBox supports keyboard input pms: BUG-286729
deepin pr auto review代码审查意见:
综合以上意见,代码可以进一步优化以提高可维护性和安全性。 |
SpinBox supports keyboard input
pms: BUG-286729
Summary by Sourcery
Allow direct keyboard input in SpinBox controls by marking them as editable across VPN, Device, and IPv6 configuration sections.
Bug Fixes: