https://bugs.kde.org/show_bug.cgi?id=454386

            Bug ID: 454386
           Summary: Title and description of QCommandLinkButton is painted
                    with wrong (too large) font which causes clipping
           Product: Breeze
           Version: master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: QStyle
          Assignee: plasma-b...@kde.org
          Reporter: kloec...@kde.org
                CC: noaha...@gmail.com
  Target Milestone: ---

Created attachment 149203
  --> https://bugs.kde.org/attachment.cgi?id=149203&action=edit
Example of clipped description with Breeze style

QCommandLinkButton (from Qt 5 at least) uses font size 9pt for the title
(unless Vista style is used) and the description. In particular, this hardcoded
font size is used for calculating the size hints. The Breeze style paints title
and description with the button font without adjusting the font size. Depending
on the length of the text and the width of the button (i.e. if the description
fits in two lines with 9pt, but needs three lines with the normal font size)
this causes clipping of the description.

Unfortunately, QCommandLinkButton hardcodes the font used for title and
description. Moreover, it hides this implementation detail in the cpp file.
Breeze either needs to make use of QCommandLinkButton's paintEvent or it needs
to copy QCommandLinkButtonPrivate::titleFont() and ::descriptionFont() to use
the correct font for painting. Simply using a larger font because it matches
the Breeze style is no option unless you find a way to make the calculation of
the size hints match the sizes used for painting.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to