Drop compatibility code for TQThread

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/20/head
Michele Calgaro 1 year ago
parent 8bd235befa
commit cba162755d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -36,7 +36,7 @@ class YellowThread(TQThread):
event = TQCustomEvent(12345) event = TQCustomEvent(12345)
event.setData(TQString("Yellow!")) event.setData(TQString("Yellow!"))
TQThread.postEvent(self.receiver,event) TQApplication.postEvent(self.receiver,event)
self.msleep(200); self.msleep(200);
greenSem -= 1 greenSem -= 1
@ -53,7 +53,7 @@ class YellowThread(TQThread):
event = TQCustomEvent(12346) event = TQCustomEvent(12346)
event.setData(TQString("Yellow!")) event.setData(TQString("Yellow!"))
TQThread.postEvent(self.receiver,event) TQApplication.postEvent(self.receiver,event)
greenSem -= 1 greenSem -= 1
@ -79,7 +79,7 @@ class GreenThread(TQThread):
event = TQCustomEvent(12345) event = TQCustomEvent(12345)
event.setData(TQString("Green!")) event.setData(TQString("Green!"))
TQThread.postEvent(self.receiver,event) TQApplication.postEvent(self.receiver,event)
self.msleep(200) self.msleep(200)
yellowSem -= 1 yellowSem -= 1
@ -96,7 +96,7 @@ class GreenThread(TQThread):
event = TQCustomEvent(12346) event = TQCustomEvent(12346)
event.setData(TQString("Green!")) event.setData(TQString("Green!"))
TQThread.postEvent(self.receiver,event) TQApplication.postEvent(self.receiver,event)
self.msleep(10) self.msleep(10)
yellowSem -= 1 yellowSem -= 1

@ -39,7 +39,6 @@ class TQThread : TQt /CreatesThread/
public: public:
static TQt::HANDLE currentThread(); static TQt::HANDLE currentThread();
static void postEvent(TQObject *,TQEvent * /Transfer/) /ReleaseGIL/;
static void initialize(); static void initialize();
static void cleanup(); static void cleanup();

Loading…
Cancel
Save