[PyKDE] PyKDE-3.11alpha7 bug (KDE3.2.x, sip 3.10.1)

Phil Thompson phil at riverbankcomputing.co.uk
Thu Apr 29 08:46:01 BST 2004


On Thursday 29 April 2004 6:54 am, Jim Bublitz wrote:
> In PyKDE-3.11alpha7 there is one bug that will prevent compiling
> on sip 3.10.1.
>
> In kdecore/kmacroexpander.sip, change line 218:
>
> 218:    sipConvertTo_QString (key, (void **)&sKey, &iserr);
>
> to:
>
> #if SIP_VERSION >= 0x040000
>         sipConvertTo_QString (key, (void **)&sKey, &iserr);
> #else
>         sipConvertTo_QString (key, &sKey, &iserr);
> #endif
>
> This only applies for KDE >= 3.2.0 and doesn't affect releases
> before alpha7.

I would suggest the following instead...

sKey = reinterpret_cast<QString *>(sipForceConvertTo_QString(key, &iserr));

...which will work on SIP 3 & 4.

Phil




More information about the PyQt mailing list