Repository navigation
fix(qt): IME 预览测量/失焦清理/失败提交 (#155) - #230
Merged
Merged
Conversation
…d commits refs #155 The preview now uses the font advance instead of the QChar count, losing focus drops the composition, and a commit rejected by the bounded queue keeps its preview visible.
5 tasks
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
修 #155 审计中发现的 3 处代码级问题(第 4 条
event->attributes()暂不处理,见边界):preedit_.size()当列宽,宽字符/组合字符会画错QFontMetricsF::horizontalAdvance(preedit_)FocusOut/Hide时清空并重绘model_.send()成功才清空预览;失败时保留,避免「已送出」的假象验证
build-qt构建termforge_qt_shell、qt_cpp_shell_smoke通过;本地 Qt 冒烟:边界
event->attributes()仍未读取:Qt 的输入法属性(下划线/选区样式)目前统一按下划线画,属观感差异,未在本 PR 处理;Refs #155