A few days ago I posted a patch to build sip-4.0.1 with support for qte-mt. 
Now I have an update for the PyQT snapshot (20040719) that I pulled down.

I have included it here inline because I want to explain the problems I had; 
the patch is not intended to be applied directly to the source because I'm 
not sure what the proper changes should be. I just hacked it up to work on my 
system.

I had to make 3 changes.


1) The plattag for qte (or in my case, qte-mt) should be WS_QWS, not WS_X11

diff -ur 
PyQt-x11-gpl-snapshot-20040719/configure.py 
../PyQt-x11-gpl-snapshot-20040719/configure.py
--- PyQt-x11-gpl-snapshot-20040719/configure.py 2004-07-19 21:30:22.000000000 
-0500
+++ ../PyQt-x11-gpl-snapshot-20040719/configure.py      2004-07-28 
23:12:45.000000000 -0500
@@ -469,7 +469,8 @@
     elif sys.platform == "darwin":
         plattag = "WS_MACX"
     else:
-        plattag = "WS_X11"
+        #plattag = "WS_X11"
+        plattag = "WS_QWS"
 
     qt_sip_flags.append("-t")
     qt_sip_flags.append(plattag)



2) qt-embedded-free-3.3.2 did not have 'cacheStatistics'. I don't know if 
that's the general case, or just in my build.

diff -ur 
PyQt-x11-gpl-snapshot-20040719/sip/qt/qfont.sip 
../PyQt-x11-gpl-snapshot-20040719/sip/qt/qfont.sip
--- PyQt-x11-gpl-snapshot-20040719/sip/qt/qfont.sip     2004-07-19 
21:30:28.000000000 -0500
+++ ../PyQt-x11-gpl-snapshot-20040719/sip/qt/qfont.sip  2004-07-28 
23:36:45.000000000 -0500
@@ -340,7 +340,7 @@
 
        static void initialize();
        static void cleanup();
-       static void cacheStatistics();
+//     static void cacheStatistics();
 
 %If (Qt_3_0_0 -)
        enum Script {



3) qt-embedded-free-3.3.2 did not have Qt::HANDLE, but did have HANDLE

diff -ur 
PyQt-x11-gpl-snapshot-20040719/sip/qt/qthread.sip 
../PyQt-x11-gpl-snapshot-20040719/sip/qt/qthread.sip
--- PyQt-x11-gpl-snapshot-20040719/sip/qt/qthread.sip   2004-07-19 
21:30:28.000000000 -0500
+++ ../PyQt-x11-gpl-snapshot-20040719/sip/qt/qthread.sip        2004-07-28 
23:14:13.000000000 -0500
@@ -43,7 +43,8 @@
        static HANDLE currentThread();
 %End
 %If (Qt_3_0_0 -)
-       static Qt::HANDLE currentThread();
+       //static Qt::HANDLE currentThread();
+       static HANDLE currentThread();
 %End
        static void postEvent(QObject *,QEvent * /Transfer/);
 %If (Qt_3_0_0 -)


--gilbert

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to