[PATCH] Fifteen puzzle sizing change (and other fixes)
Anthony Bryant
antjbryant at gmail.com
Wed Sep 3 17:54:18 CEST 2008
Hi, I've been using KDE from trunk for a while now, and I thought I would
try to fix a few bugs I noticed in the fifteen puzzle applet (and also add a
few new features) as my first contribution, if someone would be kind enough
to look over and possibly commit it.
Basically I've taken out the size constant and re-worked the interface to
use the width and height of the actual applet for positioning the pieces,
the main problem this fixes is the one pixel gaps between pieces, but it
also allows the resolution of custom images to be changed on the fly when
the applet is resized.
I also changed the piecePressed() function to allow the user to click on any
tile in the same row or column as the blank tile.
There are also a few fixes for being able to have a puzzle with identical
tiles and no numerals, and for having a blank custom image.
Bear in mind I don't have a lot of C++ or Qt experience (mostly use java) so
there might be a few bugs I haven't spotted.
Thanks,
Anthony.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20080903/9cb15fa8/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fifteen.diff
Type: text/x-diff
Size: 9461 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080903/9cb15fa8/attachment.bin
More information about the Plasma-devel
mailing list