[KMessageWidget] Subtract the correct margin
ClosedPublic

Authored by davidre on Jan 19 2020, 2:44 PM.

Details

Summary

The comment describes a 1px border but the border actually has a size of 2px.

Test Plan

Before:


After:

Diff Detail

Repository
R236 KWidgetsAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidre created this revision.Jan 19 2020, 2:44 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 19 2020, 2:44 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidre requested review of this revision.Jan 19 2020, 2:44 PM
davidre edited the test plan for this revision. (Show Details)Jan 19 2020, 2:45 PM
davidre added reviewers: Frameworks, svuorela.
davidre edited reviewers, added: SGOrava; removed: svuorela.
davidre updated this revision to Diff 73881.Jan 19 2020, 2:47 PM

Update comment

ngraham accepted this revision.Jan 21 2020, 1:21 AM
ngraham added a subscriber: ngraham.

Ah yep, this was probably my oversight when I ported it to use the flatter Kirigami style.

This revision is now accepted and ready to land.Jan 21 2020, 1:21 AM
This revision was automatically updated to reflect the committed changes.
broulik added inline comments.
src/kmessagewidget.cpp
214

Maybe instead make the width an int variable and use it in both places to future-proof it?