[PyKDE] typo in pyuic3/object.cpp

Phil Thompson phil at riverbankcomputing.co.uk
Thu Nov 17 18:17:53 GMT 2005


On Thursday 17 November 2005 4:09 pm, Anders Quist wrote:
> Misspelling of accel in object.cpp means that pyuic creates calls to
> setAccel contains a string, rather than a QKeySequence as the
> condition doesn't match the .ui file property.
>
> --- pyuic3/object.cpp.orig      2005-11-17 17:00:02.000000000 +0100
> +++ pyuic3/object.cpp   2005-11-17 17:01:35.000000000 +0100
> @@ -166,7 +166,7 @@
>                 call += "setProperty(\"" + prop + "\",QVariant(";
>                 tail = "))";
>             }
> -           if ( prop == "accell" ) {
> +           if ( prop == "accel" ) {
>                 call += "QKeySequence(";
>                 tail += ")";
>             }

Thanks,
Phil




More information about the PyQt mailing list