Bug 151304

Summary: game list drawing problem
Product: [Applications] ksudoku Reporter: Andreas Pakulat <apaku>
Component: generalAssignee: Johannes.Bergmeier
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot of the errorneous ksudoku gamelist

Description Andreas Pakulat 2007-10-25 00:11:27 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

KSudoku's list of possible sudoku games isn't drawn properly. The description line under the game names is cut off. I guess the height-calculating code has a slight error. Screenshot will be attached to demonstrate.
Comment 1 Andreas Pakulat 2007-10-25 00:12:28 UTC
Created attachment 21908 [details]
screenshot of the errorneous ksudoku gamelist
Comment 2 Andreas Pakulat 2007-11-01 01:39:10 UTC
SVN commit 731565 by apaku:

Hardcoded sizeHint is not a good idea. Calculate the proper size using the icon, title and description.

This moves the private variables from paint() into the class so they can be shared between paint() and sizeHint() to reduce duplication.

BUG:151304
CCMAIL:kde-games-devel@kde.org

 M  +57 -36    gamevariants.cpp  
 M  +25 -19    gamevariants.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=731565