Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KCalc
Commits
60ffd94e
Commit
60ffd94e
authored
Sep 12, 2021
by
Niklas Freund
Browse files
Fixed entered text length on display influencing sizeHint()
parent
73596fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcalcdisplay.cpp
View file @
60ffd94e
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment