[PyKDE] setAutoResize on PyQt3c102 over PPC

Phil Thompson phil at river-bank.demon.co.uk
Tue Apr 29 12:05:01 BST 2003


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




More information about the PyQt mailing list