Bug 71034

Summary: Column number is chopped off on the board - patch included
Product: [Unmaintained] kbackgammon Reporter: Luciano Montanaro <mikelima>
Component: generalAssignee: Jens Hoefkens <jens>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Fix the reported problem

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