Normal text is column inlined so the word wrap marker even though drawn last doesn't go
over anything. Inline notes on the other hand can contain arbitrary content
especially not column aligned text and background. Drawing the marker over them
looks ugly.
Details
- Reviewers
brauch - Group Reviewers
KTextEditor - Commits
- R39:875d4da5475f: Draw inlineNotes after drawing word wrap marker
Before:
After:
Diff Detail
- Repository
- R39 KTextEditor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Hi, could it be that killed the inline notes autotest?
https://build.kde.org/job/Frameworks/job/ktexteditor/job/kf5-qt5%20SUSEQt5.12/313/
FAIL! : InlineNoteTest::testInlineNote() Compared values are not the same Actual (newCoordCol04): QPoint(51,1) Expected (coordCol04) : QPoint(33,1)
I have node idea why the test would be failing. It complains that a coordinateToCursor changed. My idea what could cause this that an inlineNote is inserted at not the exprected place so column 4 shifts to the right. However the change in the painting order shouldn't cause this as far as I understand it. To make matters worse the test passes for me locally. I would need help here to invesitagte or I would revert this for the moment.
I also don't understand this. Even if the painting somehow changes, e.g. because some painter state is set which wasnt set before (which I do not see to be the case here), that should not affect the line layout, as that is computed separately.
Very strange.
Yes I have the same thoughts. Maybe someone could trigger a rebuild, maybe it was just a fluke?
Seems in https://build.kde.org/job/Frameworks/job/ktexteditor/job/kf5-qt5%20SUSEQt5.12/314/ the test passed again?