summaryrefslogtreecommitdiff
path: root/packages/kdepimpi/files/qt-mt.patch
blob: c7e3f9d88a10f7b4e716ef11579156d85afa804a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff --git a/microkde/kresources/resource.cpp b/microkde/kresources/resource.cpp
index cccd485..65d82e2 100644
--- a/microkde/kresources/resource.cpp
+++ b/microkde/kresources/resource.cpp
@@ -29,6 +29,23 @@
 
 using namespace KRES;
 
+namespace fixme {
+    class QMutexLocker {
+	public:
+	    QMutexLocker(QMutex *m)  : mtx(m) {
+		if(mtx) mtx->lock();
+	    }
+	    ~QMutexLocker() {
+		if(mtx) mtx->unlock();
+	    }
+
+	    QMutex *mutex() const { return mtx; }
+	private:
+	    QMutex *mtx;
+    };
+}
+using namespace fixme;
+
 class Resource::ResourcePrivate
 {
   public:
diff --git a/microkde/kresources/resource.h b/microkde/kresources/resource.h
index ed5af96..997fff6 100644
--- a/microkde/kresources/resource.h
+++ b/microkde/kresources/resource.h
@@ -25,7 +25,7 @@
 
 //US
 #ifdef QT_THREAD_SUPPORT
-#include <qmutex.h>
+#include <qthread.h>
 #endif //QT_THREAD_SUPPORT
 
 #include <qvaluelist.h>