Make toOF/toQt more powerful and complete QtWidget
This commit is contained in:
parent
b37c5f6fc5
commit
d8f3aa90ec
24 changed files with 1047 additions and 385 deletions
|
@ -37,3 +37,20 @@
|
|||
- (bool)sendEvent: (QtEvent*)event
|
||||
receiver: (QtObject*)receiver;
|
||||
@end
|
||||
|
||||
namespace ObjQt {
|
||||
|
||||
static OF_INLINE QtCoreApplication*
|
||||
toOF(QCoreApplication *qCoreApplication)
|
||||
{
|
||||
return [[[QtCoreApplication alloc]
|
||||
initWithQCoreApplication: qCoreApplication] autorelease];
|
||||
}
|
||||
|
||||
static OF_INLINE QCoreApplication*
|
||||
toQt(QtCoreApplication *coreApplication)
|
||||
{
|
||||
return [coreApplication qCoreApplication];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue