Bug 71034 - Column number is chopped off on the board - patch included
Summary: Column number is chopped off on the board - patch included
Status: RESOLVED FIXED
Alias: None
Product: kbackgammon
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Jens Hoefkens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-22 14:18 UTC by Luciano Montanaro
Modified: 2003-12-27 13:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Fix the reported problem (2.24 KB, patch)
2003-12-22 14:22 UTC, Luciano Montanaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Montanaro 2003-12-22 14:18:58 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The numbers on the "cells" or point on the kbackgammon board
are clipped on the top. This is due to using Font::pointSize() to get the font size, which is not right for a number of displays.
My solution is to use the FontMetrics::height() instead.
Comment 1 Luciano Montanaro 2003-12-22 14:22:53 UTC
Created attachment 3820 [details]
Fix the reported problem

The patch uses FontMetrics::height() to evaluate the font height.
It also adds a minimumSizeHint() method to the class.
The board drawing code should be made a bit smarter, and the graphics could be
fancier, but I'd be glad enough with this applied for the time being.
Comment 2 Luciano Montanaro 2003-12-27 13:01:17 UTC
Patch applied