-
Notifications
You must be signed in to change notification settings - Fork 180
fix(editstackedwidget): enhance text input handling and max length ma… #3144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix(editstackedwidget): enhance text input handling and max length ma… #3144
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
deepin pr auto review我对这段代码进行了审查,以下是我的分析和改进建议: 1. 代码逻辑改进
2. 代码质量提升
3. 性能优化
4. 安全性增强
5. 具体改进建议
总体而言,这段代码的改进主要集中在提高用户体验(保留后缀名)、优化性能和增强安全性方面。新代码的逻辑更加清晰,处理方式更加合理,能够提供更好的文件重命名体验。 |
Reviewer's GuideRefactors NameTextEdit to support dynamic max-length enforcement and cursor-aware truncation, introduces a setMaxLength API, and updates renameFile to reserve space for file suffixes while selecting only the base file name. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a4b24ee to
de26f98
Compare
|
TAG Bot New tag: 6.5.94 |
|
TAG Bot New tag: 6.5.95 |
|
TAG Bot New tag: 6.5.96 |
df62b12 to
567f9d4
Compare
|
TAG Bot New tag: 6.5.97 |
…nagement - Refactored the text input handling in the NameTextEdit class to improve cursor positioning and character limit enforcement. - Introduced a new method `setMaxLength` to dynamically set the maximum length for text input based on file suffixes. - Updated the renameFile method to reserve space for file suffixes, ensuring that the main file name is editable without truncating the suffix. These changes enhance user experience by providing better control over text input and ensuring that file names are handled correctly. bug: https://pms.uniontech.com/bug-view-321657.html
567f9d4 to
31f8fee
Compare
|
TAG Bot New tag: 6.5.98 |
|
TAG Bot New tag: 6.5.99 |
|
TAG Bot New tag: 6.5.100 |
|
TAG Bot New tag: 6.5.101 |
|
TAG Bot New tag: 6.5.102 |
|
TAG Bot New tag: 6.5.103 |
|
TAG Bot New tag: 6.5.104 |
|
TAG Bot New tag: 6.5.105 |
|
TAG Bot New tag: 6.5.106 |
…nagement
setMaxLengthto dynamically set the maximum length for text input based on file suffixes.These changes enhance user experience by providing better control over text input and ensuring that file names are handled correctly.
bug: https://pms.uniontech.com/bug-view-321657.html
Summary by Sourcery
Enhance NameTextEdit to support dynamic maximum lengths, improve cursor positioning and trimming logic, and update renameFile to reserve suffix space and select only the base name for editing
New Features:
Bug Fixes:
Enhancements: