-
Notifications
You must be signed in to change notification settings - Fork 146
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
fix: double click edit incorrect format #543
Conversation
Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: linuxdeepin/dtkwidget#543
@@ -379,7 +377,9 @@ class DCrumbEditPrivate : public DCORE_NAMESPACE::DObjectPrivate | |||
if (cursor.charFormat().objectType() != objectType) | |||
return false; | |||
|
|||
DCrumbTextFormat format(cursor.charFormat()); |
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.
从 cursor 获取 charformat 不准,还是从layout中获取准确一些
@@ -391,7 +391,8 @@ class DCrumbEditPrivate : public DCORE_NAMESPACE::DObjectPrivate | |||
|
|||
makeCrumb(); | |||
|
|||
if (mousePos.x() < q->cursorRect().left()) | |||
if (mousePos.x() < q->cursorRect().left() || | |||
mousePos.y() < q->cursorRect().top()) |
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.
换行时会有计算错误,所以要考虑 y
Doc Check bot |
TAG Bot New tag: 5.6.21 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, kegechen 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 |
Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: linuxdeepin/dtkwidget#543
Issue: linuxdeepin/developer-center#6780