[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] pyuic4 generates invalid code for showDropIndicator
From: Torsten Marek <shlomme () gmx ! net>
Date: 2006-05-25 18:59:40
Message-ID: 4475FE9C.3010107 () gmx ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Tomi Kyöstilä wrote:
> Hi!
>
> When I set the showDropIndicator property to true for a QTreeView in Qt
> Designer, pyuic4 generates the code
> self.feedTreeView.setShowDropIndicator(True). There's no such method as
> setShowDropIndicator. It should be setDropIndicatorShown(True). The C++
> code that uic generates uses
> feedTreeView->setProperty("showDropIndicator", QVariant(true));.
>
Hi,
well, Qt is consistent except for the parts where it isn't:)
Thanks for the investigation, patch is included.
best,
Torsten
--
Torsten Marek <shlomme@gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net
["showDropIndicator.patch" (text/x-patch)]
=== modified file 'uic/properties.py'
--- uic/properties.py
+++ uic/properties.py
@@ -130,7 +130,7 @@
# all properties that need special handling
currentIndex = currentRow = _delay
- intValue = value = _setViaSetProperty # QLCDValue needs this
+ showDropIndicator = intValue = value = _setViaSetProperty # QLCDValue needs this
# buddy setting has to be done after the whole widget tree has been populated
# we can't use delay here because we cannot get the actual buddy yet
["signature.asc" (application/pgp-signature)]
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic