Skip to content

Do not override Heading pixel size in BreadCrumbControl

Ismael Asensio requested to merge work/fix_headingsize into master

This fixes the inconsistency found in title sizes between QML KCMs and QWidget KCMs.

Both KCM titles use the same logic to calculate the title font.pointSize depending on the heading level:

  • Heading.qml:headerPointSize() in Kirigami
  • ktitlewidget.cpp:textStyleSheet() in KConfigWidgets

But setting externally the Heading.pixelSize depending on height was overriding this calculation.

BEFORE AFTER
kcmTitle_before_qml2 kcmTitle_after_qml2
kcmTitle_before_qml1 kcmTitle_after_qml1
QWIDGET KCM
kcmTitle_qwidgets kcmTitle_qwidgets

Merge request reports

Loading