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

List:       pykde
Subject:    Re: [PyKDE] QMenuData.findItem() breaking PyQT 3.5 code on PyQT < 3.5 systems
From:       Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date:       2002-12-30 13:01:56
[Download RAW message or body]

On Saturday 28 December 2002 8:33 pm, Ricardo Niederberger Cabral wrote:
> Why pyuic from PyQT 3.5 uses QMenuData.findItem() for setting menu bar
> labels on the languageChange() method of generated MainWindows ? From what
> I found on PyQT's Changelog, findItem method was introduced in 3.5,
> therefore producing classes that would break on the languageChange() method
> on 3.4 systems (which Debian and Mandrake 9 seems to use) Couldn't
> QMenuData.changeItem() or something else be used instead of findItem() ?

According to the Changelog QMenuData.findItem() was added 15 months ago, so 
this particular one shouldn't be a problem.

However it is possible (because pyuic tracks the latest uic) that something 
gets introduced that is only available in recent versions of Qt. I will treat 
those as bugs.

Note that uic only generates code for the version of Qt it was shipped with. 
pyuic, on the other hand, tries to generate code for any version of Qt (with 
the same major number). There may be cases where pyuic can't do this without 
sacrificing portability or functionality.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.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