[PyKDE] setAutoResize on PyQt3c102 over PPC
Hans-Peter Jansen
hpj at urpla.net
Tue Apr 29 11:43:00 BST 2003
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...
While at it, here's a compiler warning fix (2 warnings left with gcc
3.2):
--- pyuic3/embed.cpp.orig 2003-04-29 10:58:27.000000000 +0200
+++ pyuic3/embed.cpp 2003-04-29 10:58:30.000000000 +0200
@@ -66,17 +66,17 @@
static ulong embedData( QTextStream& out, const uchar* input, int
nbytes )
{
#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION
QByteArray bazip( qCompress( input, nbytes ) );
- ulong len = bazip.size();
+ ulong len = (ulong)bazip.size();
#else
- ulong len = nbytes;
+ ulong len = (ulong)nbytes;
#endif
static const char hexdigits[] = "0123456789abcdef";
QString s;
- for ( int i=0; i<(int)len; i++ ) {
+ for ( ulong i=0; i<len; i++ ) {
if ( (i%14) == 0 ) {
if (i)
s += '"';
s += " \\\n \"";
Pete
More information about the PyQt
mailing list