ObjQt  Diff

Differences From Artifact [117e62c463]:

To Artifact [fd57508770]:


21
22
23
24
25
26
27
28

29
30
31
32
33

34
35
36
37
38

39
40

41
42
43

44
45
46
47
48

49
50
51
52
53
54
55
21
22
23
24
25
26
27

28
29
30
31
32

33
34
35
36
37

38
39

40
41
42

43
44
45
46
47

48
49
50
51
52
53
54
55







-
+




-
+




-
+

-
+


-
+




-
+







 */

#import "QtThread.h"

using ObjQt::toQt;

@implementation QtThread: QtObject
- initWithQObject: (QObject*)qObject
- initWithQObject: (QObject *)qObject
{
	OF_INVALID_INIT_METHOD
}

- initWithQThread: (QThread*)qThread
- initWithQThread: (QThread *)qThread
{
	return [super initWithQObject: qThread];
}

- (QThread*)qThread
- (QThread *)qThread
{
	return qobject_cast<QThread*>(_qObject);
	return qobject_cast<QThread *>(_qObject);
}

- (QAbstractEventDispatcher*)eventDispatcher
- (QAbstractEventDispatcher *)eventDispatcher
{
	return toQt(self)->eventDispatcher();
}

- (void)setEventDispatcher: (QAbstractEventDispatcher*)eventDispatcher
- (void)setEventDispatcher: (QAbstractEventDispatcher *)eventDispatcher
{
	toQt(self)->setEventDispatcher(eventDispatcher);
}

- (void)exitWithReturnCode: (int)returnCode
{
	toQt(self)->exit(returnCode);