okular/ui
Andrey Yashkin 5099b6150c Fix an incorrect text bounding rectangle calculation inside the sidebar
Summary:
Now //fontBoundaries// always has smaller width than //boundingRect// from
```
void QPainter::drawText(const QRect &rectangle, int flags, const QString &text, QRect *boundingRect = nullptr)
```
which is required to enclose the whole text. The difference is only several pixels, but sometimes it can cause visual problems. You can see the sidebar without and with this patch in Russian language with Noto Sans 10pt font on a picture below.
{F7177644}
Now the first and the last symbols are fully visible.

Reviewers: #okular

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D23012
2019-08-08 00:20:45 +02:00
..
data
annotationmodel.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
annotationmodel.h
annotationpopup.cpp
annotationpopup.h Simplify AnnotPagePair 2019-01-10 00:40:23 +01:00
annotationpropertiesdialog.cpp Improve layout of annotation configuration dialogs 2019-06-24 07:36:21 +02:00
annotationpropertiesdialog.h
annotationproxymodels.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
annotationproxymodels.h
annotationtools.cpp Mind the devicePixelRatio when drawing on-screen in presentation mode 2019-06-22 21:55:30 +02:00
annotationtools.h
annotationwidgets.cpp Improve layout of annotation configuration dialogs 2019-06-24 07:36:21 +02:00
annotationwidgets.h Improve layout of annotation configuration dialogs 2019-06-24 07:36:21 +02:00
annotwindow.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
annotwindow.h Fix some clazy warning 2019-05-27 08:02:57 +02:00
bookmarklist.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
bookmarklist.h
certificateviewer.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
certificateviewer.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
CMakeLists.txt
debug_ui.cpp
debug_ui.h
drawingtoolactions.cpp
drawingtoolactions.h
embeddedfilesdialog.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
embeddedfilesdialog.h
fileprinterpreview.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
fileprinterpreview.h
findbar.cpp Implemented find function from console 2019-02-13 23:59:52 +01:00
findbar.h Implemented find function from console 2019-02-13 23:59:52 +01:00
formwidgets.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
formwidgets.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
guiutils.cpp
guiutils.h
ktreeviewsearchline.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
ktreeviewsearchline.h
latexrenderer.cpp
latexrenderer.h delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
layers.cpp
layers.h Fix forward declaration 2019-06-03 08:48:32 +02:00
magnifierview.cpp
magnifierview.h
minibar.cpp Use logically correct icon for direction arrows 2019-03-13 19:24:42 +05:30
minibar.h
okmenutitle.cpp
okmenutitle.h
pageitemdelegate.cpp
pageitemdelegate.h
pagepainter.cpp Add line annotation ending arrows for non PDF documents 2019-06-01 17:28:48 +02:00
pagepainter.h Add line annotation ending arrows for non PDF documents 2019-06-01 17:28:48 +02:00
pagesizelabel.cpp
pagesizelabel.h
pageview.cpp Fix page boundary gradients on scaled displays 2019-07-17 19:46:59 +00:00
pageview.h Fix forward declaration 2019-06-03 08:48:32 +02:00
pageviewannotator.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
pageviewannotator.h
pageviewmouseannotation.cpp
pageviewmouseannotation.h
pageviewutils.cpp Use not deprecated methods 2019-03-13 06:58:11 +01:00
pageviewutils.h Fix forward declaration 2019-06-03 08:48:32 +02:00
presentationsearchbar.cpp Port away from deprecated setClearButtonShown 2018-10-28 12:49:50 +02:00
presentationsearchbar.h
presentationwidget.cpp Partially revert "Fix two easy deprecation warnings" 2019-07-04 00:31:15 +02:00
presentationwidget.h Presentation: optionally go to prev. page when touching left half of the page 2019-03-11 21:09:30 +01:00
priorities.h
propertiesdialog.cpp
propertiesdialog.h Fix forward declaration 2019-06-03 08:48:32 +02:00
revisionviewer.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
revisionviewer.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
searchlineedit.cpp Fix minor typos 2018-11-14 21:12:15 +02:00
searchlineedit.h
searchwidget.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
searchwidget.h Fix minor typos 2018-11-14 21:12:15 +02:00
side_reviews.cpp Fix two easy deprecation warnings 2019-07-04 00:06:19 +02:00
side_reviews.h Add buttons to collapse and expand all elements 2019-04-01 00:16:09 +02:00
sidebar.cpp Fix an incorrect text bounding rectangle calculation inside the sidebar 2019-08-08 00:20:45 +02:00
sidebar.h
signatureguiutils.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signatureguiutils.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturemodel.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturemodel.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturepanel.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturepanel.h Fix forward declaration 2019-06-03 08:48:32 +02:00
signaturepropertiesdialog.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
signaturepropertiesdialog.h Fix forward declaration 2019-06-03 08:48:32 +02:00
snapshottaker.cpp
snapshottaker.h
thumbnaillist.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
thumbnaillist.h Remove deprecated method 2019-02-27 07:50:47 +01:00
toc.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
toc.h Fix forward declaration 2019-06-03 08:48:32 +02:00
tocmodel.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
tocmodel.h
toolaction.cpp Use a more conventional dropdown menu style instead of press-and-hold 2019-06-06 11:40:02 -06:00
toolaction.h
tts.cpp
tts.h
url_utils.h
videowidget.cpp
videowidget.h