45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
@end
namespace ObjQt {
static OF_INLINE QtEvent *
toOF(QEvent *qEvent)
{
return [[[QtEvent alloc] initWithQEvent: qEvent] autorelease];
}
static OF_INLINE QEvent *
toQt(QtEvent *event)
{
return [event qEvent];
|
>
>
>
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
@end
namespace ObjQt {
static OF_INLINE QtEvent *
toOF(QEvent *qEvent)
{
if (qEvent == NULL)
return nil;
return [[[QtEvent alloc] initWithQEvent: qEvent] autorelease];
}
static OF_INLINE QEvent *
toQt(QtEvent *event)
{
return [event qEvent];
|