Bug 151304 - game list drawing problem
Summary: game list drawing problem
Status: RESOLVED FIXED
Alias: None
Product: ksudoku
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Johannes.Bergmeier
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 00:11 UTC by Andreas Pakulat
Modified: 2007-11-01 01:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of the errorneous ksudoku gamelist (127.33 KB, image/png)
2007-10-25 00:12 UTC, Andreas Pakulat
Details

Note You need to log in before you can comment on or make changes to this bug.
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