Commit 60ffd94e authored by Niklas Freund's avatar Niklas Freund
Browse files

Fixed entered text length on display influencing sizeHint()

parent 73596fd2
......@@ -1105,7 +1105,7 @@ QSize KCalcDisplay::sizeHint() const
const QFontMetrics fmBase(baseFont());
// basic size
QSize sz = fmBase.size(Qt::TextSingleLine, text_);
QSize sz = fmBase.size(0, QStringLiteral("M"));
// expanded by 3/4 font height to make room for the status texts
QFont fnt(baseFont());
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