Source

PyQt4 for Embedded Linux / PyQt4-Qt-Embedded-Linux-patches / sip / QtCore / qreadwritelock.sip.diff

--- sip/QtCore/qreadwritelock.sip.old	2012-09-23 23:16:38.000000000 +0200
+++ sip/QtCore/qreadwritelock.sip	2012-09-23 23:21:20.000000000 +0200
@@ -33,6 +33,7 @@
 
 public:
 %If (Qt_4_4_0 -)
+%If (PyQt_Thread)
 
     enum RecursionMode
     {
@@ -48,8 +49,10 @@
     QReadWriteLock();
 %End
 %If (Qt_4_4_0 - Qt_5_0_0)
+%If (PyQt_Thread)
     QReadWriteLock(QReadWriteLock::RecursionMode recursionMode);
 %End
+%End
     ~QReadWriteLock();
     void lockForRead() /ReleaseGIL/;
     bool tryLockForRead();