summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilas Lenz <[email protected]>2018-03-10 18:53:25 +0100
committerElvis Angelaccio <[email protected]>2018-03-10 18:53:25 +0100
commitc0afecf5186d39d1cc575d464b4ca35c4489e3a3 (patch)
tree81c69efff154268e9ea06714f9016fec9d787e1b
parent90e89ef398ee797e237e58c0793c55333a264ca4 (diff)
KCalc display padding improvement
Summary: FEATURE: 390423 {F5720753} Reviewers: teran Subscribers: elvisangelaccio, acrouthamel, cfeck, kde-utils-devel Differential Revision: https://phabricator.kde.org/D10700
-rw-r--r--kcalcdisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kcalcdisplay.cpp b/kcalcdisplay.cpp
index 50d456e..dc2813d 100644
--- a/kcalcdisplay.cpp
+++ b/kcalcdisplay.cpp
@@ -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());