Summary: | Button text is too high in Kcalc with oxygen style | ||
---|---|---|---|
Product: | [Applications] kcalc | Reporter: | Oliver Becker <der.ole.becker> |
Component: | general | Assignee: | Klaus Niederkrüger <kniederk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mutlu_inek |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
KCalc button & font size issue
Same issue with "inv" mode selected. |
Description
Oliver Becker
2007-12-09 19:06:01 UTC
I confirm this behaviour, but it's a problem related to the oxygen style. I doubt it. Most probably Kcalc just sets the height of the buttons to a fixed value. Can someone check this please Created attachment 22738 [details]
KCalc button & font size issue
Created attachment 22739 [details]
Same issue with "inv" mode selected.
Other than what was mentioned above, changing the font size in the preferences does not change anything. This seems hardcoded, too. I created the two attachments seen above. SVN commit 759069 by brandybuck: BUG: 153741 Improved text drawing in KCalcButton. Text is no longer being cut off. The text is still cramped with the Oxygen style, however, because KStyle defines PM_ButtonMargin to be zero. M +12 -14 kcalc.cpp M +42 -36 kcalc_button.cpp M +7 -20 kcalc_button.h WebSVN link: http://websvn.kde.org/?view=rev&revision=759069 Note: Kcalc buttons have smaller than normal margins, and sizeHint() uses fontmetrics and button margin to get a smaller but reasonable size. KStyle defines PM_ButtonMargin to be zero, however. With most styles this is fine, but with Oxygen it makes the buttons seem cramped. This issue may need to be revisited. |