ObjQt  Diff

Differences From Artifact [ebdc9a8fdc]:

To Artifact [c3305b4c88]:


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
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







-
+




-
+




-
-
+
+







#import "QtChildEvent.h"
#import "QtObject.h"

using ObjQt::toOF;
using ObjQt::toQt;

@implementation QtChildEvent
- initWithQEvent: (QEvent *)event
- (instancetype)initWithQEvent: (QEvent *)event
{
	OF_INVALID_INIT_METHOD
}

- initWithQChildEvent: (QChildEvent *)event
- (instancetype)initWithQChildEvent: (QChildEvent *)event
{
	return [super initWithQEvent: event];
}

- initWithType: (QChildEvent::Type)type
	 child: (QtObject *)child
- (instancetype)initWithType: (QChildEvent::Type)type
		       child: (QtObject *)child
{
	try {
		self = [self initWithQChildEvent:
		    new QChildEvent(type, toQt(child))];

		[self takeOwnership];