[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Severe bugs in KWidgetItemDelegate
From:       Stefan Majewsky <majewsky () gmx ! net>
Date:       2009-10-02 22:17:28
Message-ID: 200910030017.34665.majewsky () gmx ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

I'm again working on Palapeli, my jigsaw puzzle game. Its library is 
implemented as a QAbstractListModel, which is rendered with a 
KWidgetItemDelegate on a QListView. (Actually, the whole visible content of 
the list items consists of QLabels etc., because this relieved me from having 
to bother with text layouting and stuff.

Up until now, everything worked fine, but today I've add a button to delete 
the selected puzzles from the library. I found that KWidgetItemDelegate 
behaves very badly in this case: It seems to not relayout the widgets after 
items have been removed (until the next resize event comes in).

Another thing which I noticed is that Ctrl+MouseClick does not work, even if 
ExtendedSelection is activated.

I'm not into KWidgetItemDelegate internals. If anyone here knows the code and 
wants to investigate on that, here's how to reproduce the issues:
1. Checkout and build trunk/playground/games/palapeli.
2. When you start Palapeli, it will tell you that you need to execute the 
make-puzzles.sh script in the "puzzles" subdirectory. Do so, but do not "make 
install" again!
3. Instead, open Palapeli, ignore the warning this time. Choose "Import" on 
the "My library" tab, and import all of the puzzles from the "puzzles" 
subdirectory. Now you have items available for testing the "Delete" button.

Please note that I'm using kdelibs-4.3.1 and qt-4.5.2 currently (openSUSE 
RPMs). It might be that these issues are already fixed in kdelibs-trunk.

Greetings
Stefan

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic