• Andrey Yashkin's avatar
    Fix an incorrect text bounding rectangle calculation inside the sidebar · 5099b615
    Andrey Yashkin authored
    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
    5099b615
Name
Last commit
Last update
autotests Loading commit data...
cmake/modules Loading commit data...
conf Loading commit data...
core Loading commit data...
doc Loading commit data...
generators Loading commit data...
interfaces Loading commit data...
mobile Loading commit data...
shell Loading commit data...
ui Loading commit data...
.arcconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.krazy Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING.DOC Loading commit data...
COPYING.LIB Loading commit data...
Mainpage.dox Loading commit data...
Messages.sh Loading commit data...
Okular5Config.cmake.in Loading commit data...
OkularConfigureChecks.cmake Loading commit data...
README.internals.png Loading commit data...
TODO Loading commit data...
aboutdata.h Loading commit data...
config-okular.h.cmake Loading commit data...
extensions.cpp Loading commit data...
extensions.h Loading commit data...
kdocumentviewer.h Loading commit data...
metainfo.yaml Loading commit data...
okular.categories Loading commit data...
okular.upd Loading commit data...
okular_part.desktop Loading commit data...
part-viewermode.rc Loading commit data...
part.cpp Loading commit data...
part.h Loading commit data...
part.rc Loading commit data...