Commit c0afecf5 authored by Silas Lenz's avatar Silas Lenz Committed by Elvis Angelaccio

KCalc display padding improvement

Summary:
FEATURE: 390423

{F5720753}

Reviewers: teran

Subscribers: elvisangelaccio, acrouthamel, cfeck, kde-utils-devel

Differential Revision: https://phabricator.kde.org/D10700
parent 90e89ef3
......@@ -1003,9 +1003,9 @@ QSize KCalcDisplay::sizeHint() const {
// basic size
QSize sz = fontMetrics().size(Qt::TextSingleLine, text_);
// expanded by half font height to make room for the status texts
// expanded by 3/4 font height to make room for the status texts
QFont fnt(font());
fnt.setPointSize(qMax((fnt.pointSize() / 2), 7));
fnt.setPointSize(qMax(((fnt.pointSize() * 3) / 4), 7));
const QFontMetrics fm(fnt);
sz.setHeight(sz.height() + fm.height());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment