[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] setAutoResize on PyQt3c102 over PPC
From: Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date: 2003-04-29 10:04:38
[Download RAW message or body]
On Tuesday 29 April 2003 10:41 am, Hans-Peter Jansen wrote:
> On Tuesday 29 April 2003 10:16, Phil Thompson wrote:
> > That .ui file looks as if it was generated with Qt v2 Designer, not
> > Qt v3.
>
> nevertheless how about this:
>
> --- sip/qbutton.sip.orig 2003-04-29 11:09:16.000000000 +0200
> +++ sip/qbutton.sip 2003-04-29 11:09:56.000000000 +0200
> @@ -107,17 +107,16 @@
> };
>
> ToggleState state() const;
> %End
>
> -%If (- Qt_3_0_0)
> bool autoResize() const;
> -%End
> +
> %If (- Qt_2_00)
> void setAutoResize(bool);
> %End
> -%If (Qt_2_00 - Qt_3_0_0)
> +%If (Qt_2_00 -)
> virtual void setAutoResize(bool);
> %End
>
> bool autoRepeat() const;
> %If (- Qt_2_00)
>
> I not sure, if I got the versioning right. At least, it works...
It won't if you have QT_NO_COMPAT defined.
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