okular/generators
snooxx 💤 667e73325a
Restore properly rounded corners of popup messages
78d983ee led to some rounded corners in the UI not being perfectly
circular anymore: Popup messages would stretch the rounding depending on
message length, and the rounded corner of the message in the annotation
bar would get distorted while changing the sidebar's width.

That commit tried to fix the following `warning: ‘void
QPainter::drawRoundRect(int, int, int, int, int, int)’ is deprecated:
Use drawRoundedRect(..., Qt::RelativeSize)` by changing to
`drawRoundedRect`, but missed to also add `Qt::RelativeSize`.

Adding the missing flag fixes both issues. The change is also
implemented in `dviRenderer::epsf_special` (introduced in be544056,
changed in 55dc43bf) for correctness.

Test Plan:
  - Start Okular. The "Welcome" message and the "Document Loaded"
    message have perfectly rounded corners again, not depending
    on message length.
  - Change width of the annotations sidebar: The "No Annotations"
    message does not change its rounded corners anymore.
  - Running in HiDPI mode retains the correct behavior.
  - Note: There does not seem to be a trivial/convenient way to trigger
    the DVI code path.
2022-03-07 14:01:53 +00:00
..
chm Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
comicbook Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
djvu Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
dvi Restore properly rounded corners of popup messages 2022-03-07 14:01:53 +00:00
epub Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
fax Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
fictionbook Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
kimgio Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
markdown Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
mobipocket Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
plucker Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
poppler Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
spectre Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
tiff Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
txt GIT_SILENT Update Appstream for new release 2022-02-27 19:11:13 +01:00
xps Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
CMakeLists.txt kimgio generator: Make kexiv2 dependency optional 2021-11-29 11:59:01 +00:00