Make toOF/toQt more powerful and complete QtWidget

This commit is contained in:
Jonathan Schleifer 2017-04-15 19:18:52 +02:00
parent b37c5f6fc5
commit d8f3aa90ec
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
24 changed files with 1047 additions and 385 deletions

View file

@ -35,3 +35,20 @@
- initWithType: (QChildEvent::Type)type
child: (QtObject*)child;
@end
namespace ObjQt {
static OF_INLINE QtChildEvent*
toOF(QChildEvent *qChildEvent)
{
return [[[QtChildEvent alloc]
initWithQChildEvent: qChildEvent] autorelease];
}
static OF_INLINE QChildEvent*
toQt(QtChildEvent *childEvent)
{
return [childEvent qChildEvent];
}
}